PHP variable and type extension function processing and variable processing

Source: Internet
Author: User
PHP variable and type extension function processing and variable processing

Function processing functions:

Call_user_func_array-Call a callback with an array of parameters

Call_user_func-Call the callback given by the first parameter

Create_function-Create an anonymous (lambda-style) function

Forward_static_call_array-Call a static method and pass the arguments as array

Forward_static_call-Call a static method

Func_get_arg-Return an item from the argument list

Func_get_args-Returns an array comprising a function's argument list

Func_num_args-Returns the number of arguments passed to the function

Function_exists-Return TRUE if the given function has been defined

Get_defined_functions-Returns an array of all defined functions

Register_shutdown_function-Register a function for execution on shutdown

Register_tick_function-Register a function for execution on each tick

Unregister_tick_function-De-register a function for execution on each tick

Variable processing functions:

Boolval-Get the boolean value of a variable

Debug_zval_dump-Dumps a string representation of an internal zend value to output

Alias of doubleval-floatval

Empty-check whether a variable is empty

Floatval-get the floating point value of the variable

Get_defined_vars-returns an array consisting of all defined variables.

Get_resource_type-returned resource type

Gettype-get the variable type

Import_request_variables-import GET/POST/Cookie variables to the global scope

Intval-obtains the integer of a variable.

Is_array-check whether the variable is an array

Is_bool-check whether the variable is Boolean

Is_callable-check whether the parameter is a valid callable structure

Is_double-is_float alias

Is_float-check whether the variable is floating point type

Is_int-check whether the variable is an integer

Is_integer-is_int alias

Alias of is_long-is_int

Is_null-check whether the variable is NULL

Is_numeric-check whether the variable is a numeric or numeric string

Is_object-check whether the variable is an object

Alias of is_real-is_float

Is_resource-check whether the variable is of the resource type

Is_scalar-check whether the variable is a scalar

Is_string-check whether the variable is a string

Isset-check whether the variable is set

Print_r-prints easy-to-understand information about variables.

Serialize-generate a representation of a stored value

Settype-set the variable type

Strval-get the string value of the variable

Unserialize-create a PHP value from a stored representation

Unset-release given variables

Var_dump-prints information about a variable.

Var_export-string representation of the output or returned variable

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.