Answers for "php var type"

PHP
12

find type in php

gettype($u)
Posted by: Guest on May-08-2020
5

check type in php

gettype ( mixed $var ) : string
Posted by: Guest on February-22-2020
0

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)
?>
Posted by: Guest on April-07-2021

Browse Popular Code Answers by Language