PHP Variable functions

B

boolval()

The PHP boolval() function converts a value to boolean.

E

empty()

The PHP empty() construct checks whether a variable is empty.

F

floatval()

The PHP floatval() function converts a value to a floating-point number.

G

gettype()

The PHP gettype() function returns the type of a variable as a string.

I

intval()

The PHP intval() function converts a value to an integer.

is_array()

The PHP is_array() function checks whether a variable is an array.

is_bool()

The PHP is_bool() function checks whether a variable is of type boolean.

is_float()

The PHP is_float() function checks whether a variable is of type float.

is_int()

The PHP is_int() function checks whether a variable is of type integer.

is_null()

The PHP is_null() function checks whether a variable is null.

is_numeric()

The PHP is_numeric() function checks whether a variable is a number or numeric string.

is_object()

The PHP is_object() function checks whether a variable is an object.

is_string()

The PHP is_string() function checks whether a variable is of type string.

isset()

The PHP isset() construct checks whether a variable is set and not null.

S

settype()

The PHP settype() function sets the type of a variable.