php var type code example
Example 1: find type in php
gettype($u)
Example 2: check type in php
gettype ( mixed $var ) : string
Example 3: 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)
?>