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