0
我有这些下列变量:PHP的preg_match返回计数
$texttofind = "story of a test";
$paragraph = "the story of a test and a test paragraph used for
testing the story of a test paragraph";
我想用preg_match();
返回计数,在这种情况下为2。任何想法?
'preg_match_all'默认返回发生次数。 – hjpotter92 2012-07-15 21:58:30