31 May 2011

Preg Match All – Examples

Geen categorie No Comments

Only characters


$source_string = '234foo23doo';
$pattern = '#([a-z]+)#';
$result = preg_match_all($pattern,$source_string,$matches);

echo $matches[0];

Result: foo,doo
No Responses to “Preg Match All – Examples”

Leave a Reply