Closed CezaryDanielNowak closed 10 years ago
@korpirkor, tanks you again, I'am not a good PHPer, can you explain what this code exactly do??
@btwael Let me show you in code sample:
<?php
$foo = '123.5test';
var_dump((array)$foo); // array('123.5test')
var_dump((bool)$foo); // true
var_dump((int)$foo); // 123
var_dump((double)$foo); // 123.5
var_dump((string)$foo); // '123.5test'
?>
Supported now see http://mammouth.wamalaka.com/#cast
There is another feature unsupported by mammouth: Type Casting.
read more: http://www.electrictoolbox.com/type-casting-php/