settype

(PHP 4, PHP 5, PHP 7) Set the type of a variable bool settype ( mixed &$var, string $type ) Set the type of variable var to type. Parameters: var The variable being converted. type Possibles values of type are: "boolean" (or, since PHP 4.2.0, "bool") "integer" (or, since PHP 4.2.0, "int") "float" (only possible since PHP

serialize

(PHP 4, PHP 5, PHP 7) Generates a storable representation of a value string serialize ( mixed $value ) Generates a storable representation of a value. This is useful for storing or passing PHP values around without losing their type and structure. To make the serialized string into a PHP value again, use unserialize(). Parameters: value The value to be serialized. ser

print_r

(PHP 4, PHP 5, PHP 7) Prints human-readable information about a variable mixed print_r ( mixed $expression [, bool $return = false ] ) print_r() displays information about a variable in a way that's readable by humans. print_r(), var_dump() and var_export() will also show protected and private properties of objects with PHP 5. Static class members will not be shown. Parameters: e

isset

(PHP 4, PHP 5, PHP 7) Determine if a variable is set and is not NULL bool isset ( mixed $var [, mixed $... ] ) Determine if a variable is set and is not NULL. If a variable has been unset with unset(), it will no longer be set. isset() will return FALSE if testing a variable that has been set to NULL. Also note that a null character ("\0") is not equivalent to the PHP NULL constant. If multiple parameters are supplied th

is_string

(PHP 4, PHP 5, PHP 7) Find whether the type of a variable is string bool is_string ( mixed $var ) Finds whether the type given variable is string. Parameters: var The variable being evaluated. Returns: Returns TRUE if var is of type string, FALSE otherwise. Examples: is_string() examp

is_scalar

(PHP 4 >= 4.0.5, PHP 5, PHP 7) Finds whether a variable is a scalar bool is_scalar ( mixed $var ) Finds whether the given variable is a scalar. Scalar variables are those containing an integer, float, string or boolean. Types array, object and resource are not scalar. Note: is_scalar() does not consider resource type values to be scalar as resources are abstract datatypes which are currently based on integers. Thi

is_resource

(PHP 4, PHP 5, PHP 7) Finds whether a variable is a resource bool is_resource ( mixed $var ) Finds whether the given variable is a resource. Parameters: var The variable being evaluated. Returns: Returns TRUE if var is a resource, FALSE otherwise. Notes: is_resource() is not a strict type-c

is_real

(PHP 4, PHP 5, PHP 7) Alias of is_float() This function is an alias of: is_float().

is_object

(PHP 4, PHP 5, PHP 7) Finds whether a variable is an object bool is_object ( mixed $var ) Finds whether the given variable is an object. Parameters: var The variable being evaluated. Returns: Returns TRUE if var is an object, FALSE otherwise. Notes: This function will return FALSE if used on

is_numeric

(PHP 4, PHP 5, PHP 7) Finds whether a variable is a number or a numeric string bool is_numeric ( mixed $var ) Finds whether the given variable is numeric. Numeric strings consist of optional sign, any number of digits, optional decimal part and optional exponential part. Thus +0123.45e6 is a valid numeric value. Hexadecimal (e.g. 0xf4c3b00c), Binary (e.g. 0b10100111001), Octal (e.g. 0777) notation is not allowed.