note 68952 deleted from function.ini-get by betz

From: Date: Thu, 17 Aug 2006 07:36:57 +0000
Subject: note 68952 deleted from function.ini-get by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-115998@lists.php.net to get a copy of this message
Note Submitter: chris[underscore]lewis[AT]bellsouth.net ---- 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?

« previous php.notes (#115998) next »