note 9028 added to Type Juggling
| From: | noIdea at mailbox dot sk | Date: | Thu, 12 Oct 2000 07:34:52 +0000 |
| Subject: | note 9028 added to Type Juggling | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6400@lists.php.net to get a copy of this message | ||
I have a little problem.
Example:
$a = "12.34";
$b = (double) $a;
$c = dobleval($a);
echo $b; Result: "12"
echo $c; Result: "12"
Why ? How can I convert string to double ?
http://www.php.net/manual/language.types.type-juggling.php