Hey there! Thanks for dropping by Web Development Notes! Take a look around and grab the RSS feed to stay updated. See you around!
比如我要截取 “$0.03/word”中的数字0.03
preg_match(‘/\$(.*)\/word/’, $rate, $matche); if($matche[1]) { $rate = $match[1]; }
Also see: