·  PHP – Syntax – Datatypes – Type-Related Functions – Check Type

 

- Info:

  - Each of following functions determine whether a variable, specified by var, is of type specified by function name:

    is_array(), is_bool(), is_float(), is_integer(), is_null(), is_numeric(), is_object(),

    is_resource(), is_scalar(), and is_string()

  - Above functions can be generalized like this:

    boolean is_name(mixed var)

  - If var is indeed of the type tested  by the function name, TRUE is returned; otherwise, FALSE is returned.