$value = "12.3"; $number = intval($value);
echo "Number: $number, Value: $value<br>"; // echoes: Number: 12, Value: 12.3
if ($number != $value) { echo "Bad"; } else { echo "Good"; // echoes Good!!!!!! }
Robert Cummings wrote:
On Thu, 2003-10-23 at 12:43, Marek Kilimajer wrote:
These are all workarounds around the real problem. If php gets it wrong fix php.
Could you explain how PHP has it "wrong"?
Rob.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php