Forums / Development 4 web Forums / PHP/MySQL programming / Simple fun task
<?php $foo = '3.5 kg'; $bar = (float)$foo; // 3.5 $bar = (int)$foo; // 3 $baz = (string)$foo; // '3.5 kg'
print $bar + $baz; // 6 print $bar . $baz; // '33' ?>
why 6 & 33?