Advances the cursor while the given character is matched
public advanceWhileMatches ( string $character, integer | null $maximumCharactersToAdvance = null ) : integer | ||
$character | string | Character to match |
$maximumCharactersToAdvance | integer | null | Maximum number of characters to advance before giving up |
return | integer | Number of positions moved (0 if unsuccessful) |