svn: /phpdoc/ja/trunk/reference/var/functions/ is-numeric.xml
[email protected] (Yoshinari Takaoka)
| Newsgroups | php.doc.ja |
|---|---|
| Message-ID | <[email protected]> |
mumumu Tue, 17 Mar 2020 10:26:05 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=349480
Log:
is_numeric() accepts leading whitespace
Cf. bug #67719.
Bug: https://bugs.php.net/67719 (Suspended) is_numeric treats leading and trailing spaces differently
Changed paths:
U phpdoc/ja/trunk/reference/var/functions/is-numeric.xml
Modified: phpdoc/ja/trunk/reference/var/functions/is-numeric.xml
===================================================================
--- phpdoc/ja/trunk/reference/var/functions/is-numeric.xml 2020-03-17 10:23:01 UTC (rev 349479)
+++ phpdoc/ja/trunk/reference/var/functions/is-numeric.xml 2020-03-17 10:26:05 UTC (rev 349480)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 348339 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 349477 Maintainer: hirokawa Status: ready -->
<!-- CREDITS: takagi,mumumu -->
<refentry xml:id="function.is-numeric" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -18,7 +18,7 @@
</methodsynopsis>
<para>
指定した変数が数値であるかどうかを調べます。数値形式の文字列は以下の要素から
- なります。(オプションの)符号、任意の数の数字、(オプションの)小数部、
+ なります。(オプションの)ホワイトスペース、(オプションの)符号、任意の数の数字、(オプションの)小数部、
そして(オプションの)指数部。つまり、<literal>+0123.45e6</literal>
は数値として有効な値です。十六進表記(<literal>0xf4c3b00c</literal> など)
や二進表記 (<literal>0b10100111001</literal> など)