PHP Available Functions
PHP provides many available standard functions, the following table lists a few commonly used ones:
| Function | Description |
|
boolval | Get 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_array | Check whether a variable is an array |
| is_bool | Check whether a variable is a boolean |
| is_callable | Check 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_iterable | Check whether the content of a variable is an iterable value |
| is_long | Alias 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_resource | Check whether a variable is of 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 is not NULL |
| print_r | Print 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_export | Output or return a variable as a string |
Password Hashing Algorithms
Other Extensions