Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Available PHP Functions

Available PHP Functions

PHP provides many available standard functions; the table below lists a few commonly used ones:

function Description
boolval Get the boolean value of a variable
debug_zval_dump View the reference count and type information of a variable 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 Return an array composed of all defined variables
get_resource_type Return 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_array Check whether a variable is an array
is_bool Check whether a variable is boolean
is_callable Check whether the argument is a valid callable
is_double Alias of is_float
is_float Check whether a variable is float
is_int Check whether a variable is integer
is_integer Alias of is_int
is_iterable Check whether the content of a variable is an iterable value
is_long Alias of is_int
is_null Check whether a variable is NULL
is_numeric Check whether a variable is a number or numeric string
is_object Check whether a variable is an object
is_real Alias of is_float
is_resource Check whether a variable is a resource type
is_scalar Check whether a variable is a scalar
is_string Check whether a variable is a string
isset Check whether a variable is set and not NULL
print_r Print a variable, outputting human-readable 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 Free the given variable
var_dump Print related information about a variable
var_export Output or return a variable, represented as a string

Password Hashing

function Description
password_get_info Return information about the specified hash
password_hash Create a hash of a password
password_needs_rehash Check whether the hash matches the specified options
password_verify Verify whether a password matches a hash value