您的位置:首页技术文章
文章详情页

PHP变量与类型扩展之函数处理及变量处理

浏览:2日期:2022-09-16 09:31:30
函数处理相关函数:call_user_func_array — Call a callback with an array of parameterscall_user_func — Call the callback given by the first parametercreate_function — Create an anonymous (lambda-style) functionforward_static_call_array — Call a static method and pass the arguments as arrayforward_static_call — Call a static methodfunc_get_arg — Return an item from the argument listfunc_get_args — Returns an array comprising a function’s argument listfunc_num_args — Returns the number of arguments passed to the functionfunction_exists — Return TRUE if the given function has been definedget_defined_functions — Returns an array of all defined functionsregister_shutdown_function — Register a function for execution on shutdownregister_tick_function — Register a function for execution on each tickunregister_tick_function — De-register a function for execution on each tick变量处理相关函数:boolval — Get the boolean value of a variabledebug_zval_dump — Dumps a string representation of an internal zend value to outputdoubleval — floatval 的别名empty — 检查一个变量是否为空floatval — 获取变量的浮点值get_defined_vars — 返回由所有已定义变量所组成的数组get_resource_type — 返回资源(resource)类型gettype — 获取变量的类型import_request_variables — 将 GET/POST/Cookie 变量导入到全局作用域中intval — 获取变量的整数值is_array — 检测变量是否是数组is_bool — 检测变量是否是布尔型is_callable — 检测参数是否为合法的可调用结构is_double — is_float 的别名is_float — 检测变量是否是浮点型is_int — 检测变量是否是整数is_integer — is_int 的别名is_long — is_int 的别名is_null — 检测变量是否为 NULLis_numeric — 检测变量是否为数字或数字字符串is_object — 检测变量是否是一个对象is_real — is_float 的别名is_resource — 检测变量是否为资源类型is_scalar — 检测变量是否是一个标量is_string — 检测变量是否是字符串isset — 检测变量是否设置print_r — 打印关于变量的易于理解的信息。serialize — 产生一个可存储的值的表示settype — 设置变量的类型strval — 获取变量的字符串值unserialize — 从已存储的表示中创建 PHP 的值unset — 释放给定的变量var_dump — 打印变量的相关信息var_export — 输出或返回一个变量的字符串表示
标签: PHP
相关文章: