Advances the scan pointer if $advance_pointer, otherwise not.
Returns the matched string if $return_string is true, otherwise
returns the number of bytes advanced.
This method does affect the match register.
public searchFull ( string $pattern, boolean $advance_pointer, boolean $return_string ) : mixed | ||
$pattern | string | The regular expression |
$advance_pointer | boolean | Wheter to update the pointer or not |
$return_string | boolean | Wheter to return the matched string or the position |
return | mixed | Either the matched string (if $return_string is true) or the end position of the match |