var type php code example
Example 1: find type in php
gettype($u)
Example 2: php define variable type
<?php
$foo = "5bar"; // string
$bar = true; // boolean
settype($foo, "integer"); // $foo is 5 (integer)
settype($bar, "string"); // $bar is "1" (string)
?>