Answers for "type php"

PHP
12

find type in php

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

php typeof

gettype($var)
Posted by: Guest on June-28-2021
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