note 9023 modified in Type Juggling by ronabop
| From: | ronabop@php.net | Date: | Tue, 17 Oct 2000 05:54:10 +0000 |
| Subject: | note 9023 modified in Type Juggling by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6550@lists.php.net to get a copy of this message | ||
I don't think ++/-- is a particularly valuable piece of advice since surely the correct
solution is
$mfg_list_price = (float) ereg_replace("[^0-9.]","",$mfg_list_price);
and not some ugly hack
http://www.php.net/manual/type-juggling.php