note 68952 added to function.ini-get
| From: | chris | Date: | Thu, 17 Aug 2006 04:47:14 +0000 |
| Subject: | note 68952 added to function.ini-get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115991@lists.php.net to get a copy of this message | ||
Can someone explain the seemingly useless conversion example provided above by the manual? First of
all, the code DOES do arithmetic on the raw string (ex 2M), even though the manual suggests that
won't work. As you can see, the unit delimiter is never removed from the input string on the
example return_bytes() function. On top of that, each case in the switch does the same math - so the
swtich is, well, pointless. It seems that PHP's math system handles the unit notation -
what's going on here?
----
Server IP: 64.71.164.2
Probable Submitter: 68.17.221.154
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.ini-get.php
Edit -- https://master.php.net/note/edit/68952
Del: integrated -- https://master.php.net/note/delete/68952/integrated
Del: useless -- https://master.php.net/note/delete/68952/useless
Del: bad code -- https://master.php.net/note/delete/68952/bad+code
Del: spam -- https://master.php.net/note/delete/68952/spam
Del: non-english -- https://master.php.net/note/delete/68952/non-english
Del: in docs -- https://master.php.net/note/delete/68952/in+docs
Del: other reasons-- https://master.php.net/note/delete/68952
Reject -- https://master.php.net/note/reject/68952
Search -- https://master.php.net/manage/user-notes.php