Let's say I have:
$pattern = "/a/";
$string = 'Jack is a boy';
preg_match( $pattern, $string, $matches );
How do I perform a global search asfter the fitst a. I know in JavaScript one uses the 'g' letter. What about PHP?
Let's say I have:
$pattern = "/a/";
$string = 'Jack is a boy';
preg_match( $pattern, $string, $matches );
How do I perform a global search asfter the fitst a. I know in JavaScript one uses the 'g' letter. What about PHP?