a
函数 说明
abs 绝对值
acos 反余弦
acosh 反双曲余弦
addcslashes 以 C 语言风格使用反斜线转义字符串中的字符
addslashes 使用反斜线引用字符串
apache_child_terminate 在本次请求结束后终止 apache 子进程
apache_getenv 获取 Apache subprocess_env 变量
apache_get_modules 获得已加载的Apache模块列表
apache_get_version 获得Apache版本信息
apache_lookup_uri 对指定的 URI 执行部分请求并返回所有有关信息
apache_note 取得或设置 apache 请求记录
apache_request_headers 获取全部 HTTP 请求头信息
apache_reset_timeout 重置 Apache 写入计时器
apache_response_headers 获得全部 HTTP 响应头信息
apache_setenv 设置 Apache 子进程环境变量
apcu_add Cache a new variable in the data store
apcu_cache_info Retrieves cached information from APCu’s data store
apcu_cas Updates an old value with a new value
apcu_clear_cache Clears the APCu cache
apcu_dec Decrease a stored number
apcu_delete Removes a stored variable from the cache
apcu_entry Atomically fetch or generate a cache entry
apcu_exists Checks if entry exists
apcu_fetch Fetch a stored variable from the cache
apcu_inc Increase a stored number
apcu_sma_info Retrieves APCu Shared Memory Allocation information
apcu_store Cache a variable in the data store
apc_add 缓存一个变量到数据存储
apc_bin_dump Get a binary dump of the given files and user variables
apc_bin_dumpfile Output a binary dump of cached files and user variables to a file
apc_bin_load Load a binary dump into the APC file/user cache
apc_bin_loadfile Load a binary dump from a file into the APC file/user cache
apc_cache_info Retrieves cached information from APC’s data store
apc_cas 用新值更新旧值
apc_clear_cache 清除APC缓存
apc_compile_file Stores a file in the bytecode cache, bypassing all filters.
apc_dec Decrease a stored number
apc_define_constants Defines a set of constants for retrieval and mass-definition
apc_delete 从用户缓存中删除某个变量
apc_delete_file Deletes files from the opcode cache
apc_exists 检查APC中是否存在某个或者某些key
apc_fetch 从缓存中取出存储的变量
apc_inc 递增一个储存的数字
apc_load_constants Loads a set of constants from the cache
apc_sma_info Retrieves APC’s Shared Memory Allocation information
apc_store Cache a variable in the data store
apd_breakpoint Stops the interpreter and waits on a CR from the socket
apd_callstack Returns the current call stack as an array
apd_clunk Throw a warning and a callstack
apd_continue Restarts the interpreter
apd_croak Throw an error, a callstack and then exit
apd_dump_function_table Outputs the current function table
apd_dump_persistent_resources Return all persistent resources as an array
apd_dump_regular_resources Return all current regular resources as an array
apd_echo Echo to the debugging socket
apd_get_active_symbols Get an array of the current variables names in the local scope
apd_set_pprof_trace Starts the session debugging
apd_set_session Changes or sets the current debugging level
apd_set_session_trace Starts the session debugging
apd_set_session_trace_socket Starts the remote session debugging
array 新建一个数组
array_change_key_case 返回字符串键名全为小写或大写的数组
array_chunk 将一个数组分割成多个
array_column 返回数组中指定的一列
array_combine 创建一个数组,用一个数组的值作为其键名,另一个数组的值作为其值
array_count_values 统计数组中所有的值出现的次数
array_diff 计算数组的差集
array_diff_assoc 带索引检查计算数组的差集
array_diff_key 使用键名比较计算数组的差集
array_diff_uassoc 用用户提供的回调函数做索引检查来计算数组的差集
array_diff_ukey 用回调函数对键名比较计算数组的差集
array_fill 用给定的值填充数组
array_fill_keys 使用指定的键和值填充数组
array_filter 用回调函数过滤数组中的单元
array_flip 交换数组中的键和值
array_intersect 计算数组的交集
array_intersect_assoc 带索引检查计算数组的交集
array_intersect_key 使用键名比较计算数组的交集
array_intersect_uassoc 带索引检查计算数组的交集,用回调函数比较索引
array_intersect_ukey 用回调函数比较键名来计算数组的交集
array_keys 返回数组中部分的或所有的键名
array_key_exists 检查给定的键名或索引是否存在于数组中
array_map 将回调函数作用到给定数组的单元上
array_merge 合并一个或多个数组
array_merge_recursive 递归地合并一个或多个数组
array_multisort 对多个数组或多维数组进行排序
array_pad 用值将数组填补到指定长度
array_pop 将数组最后一个单元弹出(出栈)
array_product 计算数组中所有值的乘积
array_push 将一个或多个单元压入数组的末尾(入栈)
array_rand 从数组中随机取出一个或多个单元
array_reduce 用回调函数迭代地将数组简化为单一的值
array_replace 使用传递的数组替换第一个数组的元素
array_replace_recursive 使用传递的数组递归替换第一个数组的元素
array_reverse 返回一个单元顺序相反的数组
array_search 在数组中搜索给定的值,如果成功则返回相应的键名
array_shift 将数组开头的单元移出数组
array_slice 从数组中取出一段
array_splice 把数组中的一部分去掉并用其它值取代
array_sum 计算数组中所有值的和
array_udiff 用回调函数比较数据来计算数组的差集
array_udiff_assoc 带索引检查计算数组的差集,用回调函数比较数据
array_udiff_uassoc 带索引检查计算数组的差集,用回调函数比较数据和索引
array_uintersect 计算数组的交集,用回调函数比较数据
array_uintersect_assoc 带索引检查计算数组的交集,用回调函数比较数据
array_uintersect_uassoc 带索引检查计算数组的交集,用回调函数比较数据和索引
array_unique 移除数组中重复的值
array_unshift 在数组开头插入一个或多个单元
array_values 返回数组中所有的值
array_walk 使用用户自定义函数对数组中的每个元素做回调处理
array_walk_recursive 对数组中的每个成员递归地应用用户函数
arsort 对数组进行逆向排序并保持索引关系
asin 反正弦
asinh 反双曲正弦
asort 对数组进行排序并保持索引关系
assert 检查一个断言是否为 FALSE
assert_options 设置/获取断言的各种标志
atan 反正切
atan2 两个参数的反正切
atanh 反双曲正切
b
函数 说明
base64_decode 对使用 MIME base64 编码的数据进行解码
base64_encode 使用 MIME base64 对数据进行编码
basename 返回路径中的文件名部分
base_convert 在任意进制之间转换数字
bbcode_add_element Adds a bbcode element
bbcode_add_smiley Adds a smiley to the parser
bbcode_create Create a BBCode Resource
bbcode_destroy Close BBCode_container resource
bbcode_parse Parse a string following a given rule set
bbcode_set_arg_parser Attach another parser in order to use another rule set for argument parsing
bbcode_set_flags Set or alter parser options
bcadd 2个任意精度数字的加法计算
bccomp 比较两个任意精度的数字
bcdiv 2个任意精度的数字除法计算
bcmod 对一个任意精度数字取模
bcmul 2个任意精度数字乘法计算
bcompiler_load 从一个 bz 压缩过的文件中读取并创建类
bcompiler_load_exe 从一个 bcompiler exe 文件中读取并创建类
bcompiler_parse_class 读取一个类的字节码并回调一个用户的函数
bcompiler_read 从一个文件句柄中读取并创建类
bcompiler_write_class 写入定义过的类的字节码
bcompiler_write_constant 写入定义过的常量的字节码
bcompiler_write_exe_footer 写入开始位置以及 exe 类型文件的结尾信号
bcompiler_write_file 写入 PHP 源码文件的字节码
bcompiler_write_footer 写入单个字符 \x00 用于标识编译数据的结尾
bcompiler_write_function 以字节码写入定义过的函数
bcompiler_write_functions_from_file 以字节码写入一个文件中定义过的所以函数
bcompiler_write_header 写入 bcompiler 头
bcompiler_write_included_filename 写入一个包含的文件的字节码
bcpow 任意精度数字的成方
bcpowmod Raise an arbitrary precision number to another, reduced by a specified modulus
bcscale 设置所有bc数学函数的默认小数点保留位数
bcsqrt 任意精度数字的二次方根
bcsub 2个任意精度数字的减法
bin2hex 函数把ASCII字符的字符串转换为十六进制值
bindec 二进制转换为十进制
bindtextdomain Sets the path for a domain
bind_textdomain_codeset Specify the character encoding in which the messages from the DOMAIN message catalog will be returned
blenc_encrypt Encrypt a PHP script with BLENC.
boolval Get the boolean value of a variable
bson_decode 反序列化一个 BSON 对象为 PHP 数组
bson_encode 序列化一个 PHP 变量为 BSON 字符串
bzclose 关闭一个 bzip2 文件
bzcompress 把一个字符串压缩成 bzip2 编码数据
bzdecompress 解压经 bzip2 编码过的数据
bzerrno 返回一个 bzip2 错误码
bzerror 返回包含 bzip2 错误号和错误字符串的一个 array
bzerrstr 返回一个 bzip2 的错误字符串
bzflush 强制写入所有写缓冲区的数据
bzopen 打开一个经 bzip2 压缩过的文件
bzread bzip2 文件二进制安全地读取
bzwrite 二进制安全地写入 bzip2 文件
c
函数 说明
cairo_create Returns a new CairoContext object on the requested surface.
cairo_font_face_get_type Description
cairo_font_options_create Description
cairo_font_options_equal Description
cairo_font_options_get_antialias Description
cairo_font_options_get_hint_metrics Description
cairo_font_options_get_hint_style Description
cairo_font_options_get_subpixel_order Description
cairo_font_options_hash Description
cairo_font_options_merge Description
cairo_font_options_set_antialias Description
cairo_font_options_set_hint_metrics Description
cairo_font_options_set_hint_style Description
cairo_font_options_set_subpixel_order Description
cairo_font_options_status Description
cairo_format_stride_for_width Description
cairo_image_surface_create Description
cairo_image_surface_create_for_data Description
cairo_image_surface_create_from_png Description
cairo_image_surface_get_data Description
cairo_image_surface_get_format Description
cairo_image_surface_get_height Description
cairo_image_surface_get_stride Description
cairo_image_surface_get_width Description
cairo_matrix_invert Description
cairo_matrix_multiply Description
cairo_matrix_rotate Description
cairo_matrix_transform_distance Description
cairo_matrix_transform_point Description
cairo_matrix_translate Description
cairo_pattern_add_color_stop_rgb Description
cairo_pattern_add_color_stop_rgba Description
cairo_pattern_create_for_surface Description
cairo_pattern_create_linear Description
cairo_pattern_create_radial Description
cairo_pattern_create_rgb Description
cairo_pattern_create_rgba Description
cairo_pattern_get_color_stop_count Description
cairo_pattern_get_color_stop_rgba Description
cairo_pattern_get_extend Description
cairo_pattern_get_filter Description
cairo_pattern_get_linear_points Description
cairo_pattern_get_matrix Description
cairo_pattern_get_radial_circles Description
cairo_pattern_get_rgba Description
cairo_pattern_get_surface Description
cairo_pattern_get_type Description
cairo_pattern_set_extend Description
cairo_pattern_set_filter Description
cairo_pattern_set_matrix Description
cairo_pattern_status Description
cairo_pdf_surface_create Description
cairo_pdf_surface_set_size Description
cairo_ps_get_levels Description
cairo_ps_level_to_string Description
cairo_ps_surface_create Description
cairo_ps_surface_dsc_begin_page_setup Description
cairo_ps_surface_dsc_begin_setup Description
cairo_ps_surface_dsc_comment Description
cairo_ps_surface_get_eps Description
cairo_ps_surface_restrict_to_level Description
cairo_ps_surface_set_eps Description
cairo_ps_surface_set_size Description
cairo_scaled_font_create Description
cairo_scaled_font_extents Description
cairo_scaled_font_get_ctm Description
cairo_scaled_font_get_font_face Description
cairo_scaled_font_get_font_matrix Description
cairo_scaled_font_get_font_options Description
cairo_scaled_font_get_scale_matrix Description
cairo_scaled_font_get_type Description
cairo_scaled_font_glyph_extents Description
cairo_scaled_font_status Description
cairo_scaled_font_text_extents Description
cairo_surface_copy_page Description
cairo_surface_create_similar Description
cairo_surface_finish Description
cairo_surface_flush Description
cairo_surface_get_content Description
cairo_surface_get_device_offset Description
cairo_surface_get_font_options Description
cairo_surface_get_type Description
cairo_surface_mark_dirty Description
cairo_surface_mark_dirty_rectangle Description
cairo_surface_set_device_offset Description
cairo_surface_set_fallback_resolution Description
cairo_surface_show_page Description
cairo_surface_status Description
cairo_surface_write_to_png Description
cairo_svg_surface_create Description
cairo_svg_surface_restrict_to_version Description
cairo_svg_version_to_string Description
calculhmac Obtain a hmac key (needs 2 arguments)
calcul_hmac Obtain a hmac key (needs 8 arguments)
call_user_func 把第一个参数作为回调函数调用
call_user_func_array 调用回调函数,并把一个数组参数作为回调函数的参数
call_user_method 对特定对象调用用户方法(已废弃)
call_user_method_array 调用一个用户方法,同时传递参数数组(已废弃)
cal_days_in_month 返回某个历法中某年中某月的天数
cal_from_jd 转换Julian Day计数到一个支持的历法。
cal_info 返回选定历法的信息
cal_to_jd 从一个支持的历法转变为Julian Day计数。
ceil 进一法取整
chdb_create Creates a chdb file
chdir 改变目录
checkdate 验证一个格里高里日期
checkdnsrr 给指定的主机(域名)或者IP地址做DNS通信检查
chgrp 改变文件所属的组
chmod 改变文件模式
chop rtrim 的别名
chown 改变文件的所有者
chr 返回指定的字符
chroot 改变根目录
chunk_split 将字符串分割成小块
classkit_import Import new class method definitions from a file
classkit_method_add Dynamically adds a new method to a given class
classkit_method_copy Copies a method from class to another
classkit_method_redefine Dynamically changes the code of the given method
classkit_method_remove Dynamically removes the given method
classkit_method_rename Dynamically changes the name of the given method
class_alias 为一个类创建别名
class_exists 检查类是否已定义
class_implements 返回指定的类实现的所有接口。
class_parents 返回指定类的父类。
class_uses Return the traits used by the given class
clearstatcache 清除文件状态缓存
cli_get_process_title Returns the current process title
cli_set_process_title Sets the process title
closedir 关闭目录句柄
closelog 关闭系统日志链接
compact 建立一个数组,包括变量名和它们的值
com_create_guid Generate a globally unique identifier (GUID)
com_event_sink Connect events from a COM object to a PHP object
com_get_active_object Returns a handle to an already running instance of a COM object
com_load_typelib 装载一个 Typelib
com_message_pump Process COM messages, sleeping for up to timeoutms milliseconds
com_print_typeinfo Print out a PHP class definition for a dispatchable interface
connection_aborted 检查客户端是否已经断开
connection_status 返回连接的状态位
constant 返回一个常量的值
Constants for PDO_4D Constants for PDO_4D
Context 参数 Context 参数列表
convert_cyr_string 将字符由一种 Cyrillic 字符转换成另一种
convert_uudecode 解码一个 uuencode 编码的字符串
convert_uuencode 使用 uuencode 编码一个字符串
copy 拷贝文件
cos 余弦
cosh 双曲余弦
count 计算数组中的单元数目或对象中的属性个数
counter_bump 修改简单计数器的当前值。
counter_bump_value 更新计数器资源的当前值。
counter_create 创建一个包含单个数值的计数器。
counter_get 获取简单计数器的当前值。
counter_get_meta 返回计数器资源的部分元信息。
counter_get_named 按名称查询一个已存在的计数器,并作为资源返回。
counter_get_value 获取计数器资源的当前值。
counter_reset 重置简单计数器的当前值。
counter_reset_value 重置计数器资源的当前值。
count_chars 返回字符串所用字符的信息
crack_check Performs an obscure check with the given password
crack_closedict Closes an open CrackLib dictionary
crack_getlastmessage Returns the message from the last obscure check
crack_opendict Opens a new CrackLib dictionary
crc32 计算一个字符串的 crc32 多项式
create_function Create an anonymous (lambda-style) function
crypt 单向字符串散列
ctype_alnum 做字母和数字字符检测
ctype_alpha 做纯字符检测
ctype_cntrl 做控制字符检测
ctype_digit 做纯数字检测
ctype_graph 做可打印字符串检测,空格除外
ctype_lower 做小写字符检测
ctype_print 做可打印字符检测
ctype_punct 检测可打印的字符是不是不包含空白、数字和字母
ctype_space 做空白字符检测
ctype_upper 做大写字母检测
ctype_xdigit 检测字符串是否只包含十六进制字符
cubrid_affected_rows Return the number of rows affected by the last SQL statement
cubrid_bind Bind variables to a prepared statement as parameters
cubrid_client_encoding Return the current CUBRID connection charset
cubrid_close Close CUBRID connection
cubrid_close_prepare Close the request handle
cubrid_close_request Close the request handle
cubrid_column_names Get the column names in result
cubrid_column_types Get column types in result
cubrid_col_get Get contents of collection type column using OID
cubrid_col_size Get the number of elements in collection type column using OID
cubrid_commit Commit a transaction
cubrid_connect Open a connection to a CUBRID Server
cubrid_connect_with_url Establish the environment for connecting to CUBRID server
cubrid_current_oid Get OID of the current cursor location
cubrid_data_seek Move the internal row pointer of the CUBRID result
cubrid_db_name Get db name from results of cubrid_list_dbs
cubrid_disconnect Close a database connection
cubrid_drop Delete an instance using OID
cubrid_errno Return the numerical value of the error message from previous CUBRID operation
cubrid_error Get the error message
cubrid_error_code Get error code for the most recent function call
cubrid_error_code_facility Get the facility code of error
cubrid_error_msg Get last error message for the most recent function call
cubrid_execute Execute a prepared SQL statement
cubrid_fetch Fetch the next row from a result set
cubrid_fetch_array Fetch a result row as an associative array, a numeric array, or both
cubrid_fetch_assoc Return the associative array that corresponds to the fetched row
cubrid_fetch_field Get column information from a result and return as an object
cubrid_fetch_lengths Return an array with the lengths of the values of each field from the current row
cubrid_fetch_object Fetche the next row and returns it as an object
cubrid_fetch_row Return a numerical array with the values of the current row
cubrid_field_flags Return a string with the flags of the given field offset
cubrid_field_len Get the maximum length of the specified field
cubrid_field_name Return the name of the specified field index
cubrid_field_seek Move the result set cursor to the specified field offset
cubrid_field_table Return the name of the table of the specified field
cubrid_field_type Return the type of the column corresponding to the given field offset
cubrid_free_result Free the memory occupied by the result data
cubrid_get Get a column using OID
cubrid_get_autocommit Get auto-commit mode of the connection
cubrid_get_charset Return the current CUBRID connection charset
cubrid_get_class_name Get the class name using OID
cubrid_get_client_info Return the client library version
cubrid_get_db_parameter Returns the CUBRID database parameters
cubrid_get_query_timeout Get the query timeout value of the request
cubrid_get_server_info Return the CUBRID server version
cubrid_insert_id Return the ID generated for the last updated AUTO_INCREMENT column
cubrid_is_instance Check whether the instance pointed by OID exists
cubrid_list_dbs Return an array with the list of all existing CUBRID databases
cubrid_load_from_glo Read data from a GLO instance and save it in a file
cubrid_lob2_bind Bind a lob object or a string as a lob object to a prepared statement as parameters.
cubrid_lob2_close Close LOB object.
cubrid_lob2_export Export the lob object to a file.
cubrid_lob2_import Import BLOB/CLOB data from a file.
cubrid_lob2_new Create a lob object.
cubrid_lob2_read Read from BLOB/CLOB data.
cubrid_lob2_seek Move the cursor of a lob object.
cubrid_lob2_seek64 Move the cursor of a lob object.
cubrid_lob2_size Get a lob object’s size.
cubrid_lob2_size64 Get a lob object’s size.
cubrid_lob2_tell Tell the cursor position of the LOB object.
cubrid_lob2_tell64 Tell the cursor position of the LOB object.
cubrid_lob2_write Write to a lob object.
cubrid_lob_close Close BLOB/CLOB data
cubrid_lob_export Export BLOB/CLOB data to file
cubrid_lob_get Get BLOB/CLOB data
cubrid_lob_send Read BLOB/CLOB data and send straight to browser
cubrid_lob_size Get BLOB/CLOB data size
cubrid_lock_read Set a read lock on the given OID
cubrid_lock_write Set a write lock on the given OID
cubrid_move_cursor Move the cursor in the result
cubrid_new_glo Create a glo instance
cubrid_next_result Get result of next query when executing multiple SQL statements
cubrid_num_cols Return the number of columns in the result set
cubrid_num_fields Return the number of columns in the result set
cubrid_num_rows Get the number of rows in the result set
cubrid_pconnect Open a persistent connection to a CUBRID server
cubrid_pconnect_with_url Open a persistent connection to CUBRID server
cubrid_ping Ping a server connection or reconnect if there is no connection
cubrid_prepare Prepare a SQL statement for execution
cubrid_put Update a column using OID
cubrid_query Send a CUBRID query
cubrid_real_escape_string Escape special characters in a string for use in an SQL statement
cubrid_result Return the value of a specific field in a specific row
cubrid_rollback Roll back a transaction
cubrid_save_to_glo Save requested file in a GLO instance
cubrid_schema Get the requested schema information
cubrid_send_glo Read data from glo and send it to std output
cubrid_seq_drop Delete an element from sequence type column using OID
cubrid_seq_insert Insert an element to a sequence type column using OID
cubrid_seq_put Update the element value of sequence type column using OID
cubrid_set_add Insert a single element to set type column using OID
cubrid_set_autocommit Set autocommit mode of the connection
cubrid_set_db_parameter Sets the CUBRID database parameters
cubrid_set_drop Delete an element from set type column using OID
cubrid_set_query_timeout Set the timeout time of query execution
cubrid_unbuffered_query Perform a query without fetching the results into memory
cubrid_version Get the CUBRID PHP module’s version
CURL context options CURL 上下文选项列表
curl_close 关闭一个cURL会话
curl_copy_handle 复制一个cURL句柄和它的所有选项
curl_errno 返回最后一次的错误号
curl_error 返回一个保护当前会话最近一次错误的字符串
curl_escape 使用 URL 编码给定的字符串
curl_exec 执行一个cURL会话
curl_file_create 创建一个 CURLFile 对象
curl_getinfo 获取一个cURL连接资源句柄的信息
curl_init 初始化一个cURL会话
curl_multi_add_handle 向curl批处理会话中添加单独的curl句柄
curl_multi_close 关闭一组cURL句柄
curl_multi_exec 运行当前 cURL 句柄的子连接
curl_multi_getcontent 如果设置了CURLOPT_RETURNTRANSFER,则返回获取的输出的文本流
curl_multi_info_read 获取当前解析的cURL的相关传输信息
curl_multi_init 返回一个新cURL批处理句柄
curl_multi_remove_handle 移除curl批处理句柄资源中的某个句柄资源
curl_multi_select 等待所有cURL批处理中的活动连接
curl_multi_setopt 为 cURL 并行处理设置一个选项
curl_multi_strerror Return string describing error code
curl_pause Pause and unpause a connection
curl_reset Reset all options of a libcurl session handle
curl_setopt 设置一个cURL传输选项
curl_setopt_array 为cURL传输会话批量设置选项
curl_share_close Close a cURL share handle
curl_share_init Initialize a cURL share handle
curl_share_setopt Set an option for a cURL share handle.
curl_strerror Return string describing the given error code
curl_unescape 解码给定的 URL 编码的字符串
curl_version 获取cURL版本信息
current 返回数组中的当前单元
cyrus_authenticate Authenticate against a Cyrus IMAP server
cyrus_bind Bind callbacks to a Cyrus IMAP connection
cyrus_close Close connection to a Cyrus IMAP server
cyrus_connect Connect to a Cyrus IMAP server
cyrus_query Send a query to a Cyrus IMAP server
cyrus_unbind Unbind …
d
————————————————
版权声明:本文为CSDN博主「huidaoli」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/huidaoli/article/details/121965741
PHP7函数大全(4553个函数)
2021/12/27 5:32:05