is_numeric() accepts leading whitespace

Cf. bug #67719.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349477 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2020-03-17 09:03:45 +00:00
parent 0ca029646c
commit bb2cebd575

View file

@ -16,6 +16,7 @@
</methodsynopsis>
<para>
Finds whether the given variable is numeric. Numeric strings consist of optional
whitespace, optional
sign, any number of digits, optional decimal part and optional exponential part.
Thus <literal>+0123.45e6</literal> is a valid numeric value. Hexadecimal (e.g.
<literal>0xf4c3b00c</literal>) and binary (e.g. <literal>0b10100111001</literal>)