#27892 [Opn->Bgs]: Getting a position (using {}) of a float returns NULL
| From: | sniper@php.net | Date: | Wed, 07 Apr 2004 07:58:52 +0000 |
| Subject: | #27892 [Opn->Bgs]: Getting a position (using {}) of a float returns NULL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57618@lists.php.net to get a copy of this message | ||
ID: 27892
Updated by: sniper@php.net
Reported By: ben at nullcreations dot net
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Windows/FreeBSD
PHP Version: 4.3.4
New Comment:
Really? (RTFM)
Previous Comments:
------------------------------------------------------------------------
[2004-04-06 16:32:57] ben at nullcreations dot net
Description:
------------
When getting an index position from a float, PHP returns NULL.
Reproduce code:
---------------
<?php
$number = 1.2;
echo $number{0};
?>
Expected result:
----------------
should return a string value containing "1"
Actual result:
--------------
returns NULL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27892&edit=1