Returns false if no token can be found.
public findFirstOnLine ( integer | array $types, integer $start, boolean $exclude = false, string $value = null ) : integer | boolean | ||
$types | integer | array | The type(s) of tokens to search for. |
$start | integer | The position to start searching from in the token stack. The first token matching on this line before this token will be returned. |
$exclude | boolean | If true, find the token that is NOT of the types specified in $types. |
$value | string | The value that the token must be equal to. If value is omitted, tokens with any value will be returned. |
return | integer | boolean | | bool |