src/text/tokenizer/TextTokenizer.php
public function number($flags = 0)
    {
        $ret = false;

        if ($number = $this->match(TextTokenizer::NUMBER, $matches, $flags)) {
            $ret = $number;
        }

        return $ret;
    }
public function number($flags = 0)
    {
        $ret = false;

        if ($number = $this->match(TextTokenizer::NUMBER, $matches, $flags)) {
            $ret = $number;
        }

        return $ret;
    }
public function number ( $ flags = 0 ) { $ ret = false ; if ( $ number = $ this -> match ( TextTokenizer :: NUMBER , $ matches , $ flags ) ) { $ ret = $ number ; } return $ ret ; }
Is the next token a number?

This function returns false if the next token is not a number or an array
with a single string.

@param integer $flags Flags (default is 0)

@return false|array of a single string
Is the next token a number?