PHP Available Functions

PHP provides many available standard functions, the following table lists a few commonly used ones:

FunctionDescription
boolvalGet the boolean value of a variable
debug_zval_dump View a variable's reference count and type information in the Zend engine
doubleval Alias of floatval
empty Check whether a variable is empty
floatval Get the float value of a variable
get_defined_vars Returns an array of all defined variables
get_resource_type Returns the resource type
gettype Get the type of a variable
import_request_variables Import GET/POST/Cookie variables into the global scope
intval Get the integer value of a variable
is_arrayCheck whether a variable is an array
is_bool Check whether a variable is a boolean
is_callableCheck whether the parameter is a valid callable structure
is_double Alias of is_float
is_float Check whether a variable is a float
is_int Check whether a variable is an integer
is_integer Alias of is_int
is_iterableCheck whether the content of a variable is an iterable value
is_longAlias of is_int
is_null Check whether the variable is NULL
is_numeric Check whether a variable is a number or a numeric string
is_object Check whether a variable is an object
is_real Alias of is_float
is_resourceCheck whether a variable is of resource type
is_scalarCheck whether a variable is a scalar
is_string Check whether a variable is a string
isset Check whether a variable is set and is not NULL
print_rPrint a variable, output easy-to-read information.
serialize Serialize an object
settype Set the type of a variable
strval Get the string value of a variable
unserialize Create a PHP value from a stored representation
unset Release the given variable
var_dump Print information about a variable
var_exportOutput or return a variable as a string

Password Hashing Algorithms

FunctionDescription
password_get_info Returns information about the specified hash
password_hash Create a password hash
password_needs_rehash Check whether the hash value matches the specified options
password_verify Verify whether the password matches the hash value
Other Extensions