How to get PHP value type? Appetenza 0 minutes, 8 seconds To Read 2023-02-04 03:30:58 PHP The gettype() function returns the type of a variable. $a = 3; echo gettype($a); //integer $b = 3.2; echo gettype($b); //double $c = "Hello"; echo gettype($c); //string