note 9023 added to Type Juggling
| From: | david@php.net | Date: | Thu, 12 Oct 2000 01:18:34 +0000 |
| Subject: | note 9023 added to Type Juggling | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6394@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
<pre>$mfg_list_price = (float) ereg_replace("[^0-9.]","",$mfg_list_price);
</pre>
and not some ugly hack
http://www.php.net/manual/language.types.type-juggling.php