PHP Syntax Datatypes Type-Related Functions Get Type

 

- Info:

- gettype() function returns the type of the variable specified by var:

string gettype (mixed var)

- There are eight possible return values: array, boolean, double, integer, object, resource, string, and unknown type.