Re: Unexpected values in an associative array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Aug 8, 2007, at 12:43 AM, Robert Cummings wrote:

On Tue, 2007-08-07 at 23:28 -0500, Richard Lynch wrote:
On Tue, July 31, 2007 11:06 am, Instruct ICC wrote:
What is $value and what is this supposed to do:
							case	'integer':
									$value 		+= 0;


This is a silly hack in place of:

$value = (int) $value;

And it's flawed since a string containing a float having 0 added to it
will still be float :)

Good points. Thanks.

Ken

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux