Php 官方文档

Resource

Online

  • PHP在线问答

Download

Related

  • Idea framework 开发文档
  • PHP在线教程
  • ThinkPHP5.0完全开发手册

Array

Array Functions

  • array_change_key_case()
  • array_chunk()
  • array_combine()
  • array_count_values()
  • array_diff_assoc()
  • array_diff_key()
  • array_diff_uassoc()
  • array_diff_ukey()
  • array_diff()
  • array_fill()
  • array_filter()
  • array_flip()
  • array_intersect_assoc()
  • array_intersect_key()
  • array_intersect_uassoc()
  • array_intersect_ukey()
  • array_intersect()
  • array_key_exists()
  • array_keys()
  • array_map()
  • array_merge_recursive()
  • array_merge()
  • array_multisort()
  • array_pad()
  • array_pop()
  • array_product()
  • array_push()
  • array_rand()
  • array_reduce()
  • array_reverse()
  • array_search()
  • array_shift()
  • array_slice()
  • array_splice()
  • array_sum()
  • array_udiff_assoc()
  • array_udiff_uassoc()
  • array_udiff()
  • array_uintersect_assoc()
  • array_uintersect_uassoc()
  • array_uintersect()
  • array_unique()
  • array_unshift()
  • array_values()
  • array_walk_recursive()
  • array_walk()
  • array()
  • arsort()
  • asort()
  • compact()
  • count()
  • current()
  • each()
  • end()
  • extract()
  • in_array()
  • key()
  • krsort()
  • ksort()
  • list()
  • natcasesort()
  • natsort()
  • next()
  • pos()
  • prev()
  • range()
  • reset()
  • rsort()
  • shuffle()
  • sizeof()
  • sort()
  • uasort()
  • uksort()
  • usort()

Array Constants

  • CASE_LOWER
  • CASE_UPPER
  • COUNT_NORMAL
  • count函数有两个参数: 0(或COUNT_NORMAL)为默认,不检测多维数组(数组中的数组); 1(或COUNT_RECURSIVE)为检测多维数组,
  • COUNT_RECURSIVE
  • count函数有两个参数: 0(或COUNT_NORMAL)为默认,不检测多维数组(数组中的数组); 1(或COUNT_RECURSIVE)为检测多维数组,
  • EXTR_IF_EXISTS
  • EXTR_OVERWRITE
  • EXTR_PREFIX_ALL
  • EXTR_PREFIX_IF_EXISTS
  • EXTR_PREFIX_INVALID
  • EXTR_PREFIX_SAME
  • EXTR_REFS
  • EXTR_SKIP
  • SORT_ASC
  • SORT_DESC
  • SORT_LOCALE_STRING
  • SORT_NUMERIC
  • SORT_REGULAR
  • SORT_STRING

String

String Functions

  • addcslashes()
  • addslashes()
  • bin2hex()
  • chop()
  • chr()
  • chunk_split()
  • convert_cyr_string()
  • convert_uudecode()
  • convert_uuencode()
  • count_chars()
  • crc32()
  • crypt()
  • echo()
  • explode()
  • fprintf()
  • get_html_translation_table()
  • hebrev()
  • hebrevc()
  • html_entity_decode()
  • htmlentities()
  • htmlspecialchars_decode()
  • htmlspecialchars()
  • implode()
  • join()
  • levenshtein()
  • localeconv()
  • ltrim()
  • md5_file()
  • md5()
  • metaphone()
  • money_format()
  • nl_langinfo()
  • nl2br()
  • number_format()
  • ord()
  • parse_str()
  • print()
  • printf()
  • quoted_printable_decode()
  • quotemeta()
  • rtrim()
  • setlocale()
  • sha1_file()
  • sha1()
  • similar_text()
  • soundex()
  • sprintf()
  • sscanf()
  • str_ireplace()
  • str_pad()
  • str_repeat()
  • str_replace()
  • str_rot13()
  • str_shuffle()
  • str_split()
  • str_word_count()
  • strcasecmp()
  • strchr()
  • strcmp()
  • strcoll()
  • strcspn()
  • strip_tags()
  • stripcslashes()
  • stripos()
  • stripslashes()
  • stristr()
  • strlen()
  • strnatcasecmp()
  • strnatcmp()
  • strncasecmp()
  • strncmp()
  • strpbrk()
  • strpos()
  • strrchr()
  • strrev()
  • strripos()
  • strrpos()
  • strspn()
  • strstr()
  • strtok()
  • strtolower()
  • strtoupper()
  • strtr()
  • substr_compare()
  • substr_count()
  • substr_replace()
  • substr()
  • trim()
  • ucfirst()
  • ucwords()
  • vfprintf()
  • vprintf()
  • vsprintf()
  • wordwrap()

String Constants

  • CHAR_MAX
  • CRYPT_BLOWFISH
  • CRYPT_EXT_DES
  • CRYPT_MD5
  • CRYPT_SALT_LENGTH
  • CRYPT_STD_DES
  • ENT_COMPAT
  • ENT_NOQUOTES
  • ENT_QUOTES
  • HTML_ENTITIES
  • HTML_SPECIALCHARS
  • LC_ALL
  • LC_COLLATE
  • LC_CTYPE
  • LC_MESSAGES
  • LC_MONETARY
  • LC_NUMERIC
  • LC_TIME
  • STR_PAD_BOTH
  • STR_PAD_LEFT
  • STR_PAD_RIGHT

Variable

Handling Functions

  • boolval
  • debug_zval_dump
  • doubleval
  • empty
  • floatval
  • get_defined_vars
  • get_resource_type
  • gettype
  • import_request_variables
  • intval
  • is_array
  • is_bool
  • is_callable
  • is_double
  • is_float
  • is_int
  • is_integer
  • is_long
  • is_null
  • is_numeric
  • is_object
  • is_real
  • is_resource
  • is_scalar
  • is_string
  • isset
  • print_r
  • serialize
  • settype
  • strval
  • unserialize
  • unset
  • var_dump
  • var_export

Date/Time

Date/Time Functions

  • checkdate()
  • date_default_timezone_get()
  • date_default_timezone_set()
  • date_sunrise()
  • date_sunset()
  • date()
  • getdate()
  • gettimeofday()
  • gmdate()
  • gmmktime()
  • gmstrftime()
  • idate()
  • localtime()
  • microtime()
  • mktime()
  • strftime()
  • strptime()
  • strtotime()
  • time()

Date/Time Constants

  • DATE_ATOM
  • DATE_COOKIE
  • DATE_ISO8601
  • DATE_RFC1036
  • DATE_RFC1123
  • DATE_RFC2822
  • DATE_RFC822
  • DATE_RFC850
  • DATE_RSS
  • DATE_W3C

Directory

Directory Functions

  • chdir()
  • chroot()
  • closedir()
  • dir()
  • getcwd()
  • opendir()
  • readdir()
  • rewinddir()
  • scandir()

Directory Constants

  • DIRECTORY_SEPARATOR
  • PATH_SEPARATOR

Error

Error Functions

Error Constants

  • E_ALL
  • E_COMPILE_ERROR
  • E_COMPILE_WARNING
  • E_CORE_ERROR
  • E_CORE_WARNING
  • E_ERROR
  • E_NOTICE
  • E_PARSE
  • E_RECOVERABLE_ERROR
  • E_STRICT
  • E_USER_ERROR
  • E_USER_NOTICE
  • E_USER_WARNING
  • E_WARNING

Math

Math Functions

  • abs()
  • acos()
  • acosh()
  • asin()
  • asinh()
  • atan()
  • atan2()
  • atanh()
  • base_convert()
  • bindec()
  • ceil()
  • cos()
  • cosh()
  • decbin()
  • dechex()
  • decoct()
  • deg2rad()
  • exp()
  • expm1()
  • floor()
  • fmod()
  • getrandmax()
  • hexdec()
  • hypot()
  • is_finite()
  • is_infinite()
  • is_nan()
  • lcg_value()
  • log()
  • log10()
  • log1p()
  • max()
  • min()
  • mt_getrandmax()
  • mt_rand()
  • mt_srand()
  • octdec()
  • pi()
  • pow()
  • rad2deg()
  • rand()
  • round()
  • sin()
  • sinh()
  • sqrt()
  • srand()
  • tan()
  • tanh()

Math Constants

  • M_1_PI
  • M_2_PI
  • M_2_SQRTPI
  • M_E
  • M_EULER
  • M_LN10
  • M_LN2
  • M_LNPI
  • M_LOG10E
  • M_LOG2E
  • M_PI
  • M_PI_2
  • M_PI_4
  • M_SQRT1_2
  • M_SQRT2
  • M_SQRT3
  • M_SQRTPI

Filesystem

Filesystem Functions

  • basename()
  • chgrp()
  • chmod()
  • chown()
  • clearstatcache()
  • copy()
  • dirname()
  • disk_free_space()
  • disk_total_space()
  • diskfreespace()
  • fclose()
  • feof()
  • fflush()
  • fgetc()
  • fgetcsv()
  • fgets()
  • fgetss()
  • file_exists()
  • file_get_contents()
  • file_put_contents
  • file()
  • fileatime()
  • filectime()
  • filegroup()
  • fileinode()
  • filemtime()
  • fileowner()
  • fileperms()
  • filesize()
  • filetype()
  • flock()
  • fnmatch()
  • fopen()
  • fpassthru()
  • fputcsv()
  • fputs()
  • fread()
  • fscanf()
  • fseek()
  • fstat()
  • ftell()
  • ftruncate()
  • fwrite()
  • glob()
  • is_dir()
  • is_executable()
  • is_file()
  • is_link()
  • is_readable()
  • is_uploaded_file()
  • is_writable()
  • is_writeable()
  • link()
  • linkinfo()
  • lstat()
  • mkdir()
  • move_uploaded_file()
  • parse_ini_file()
  • pathinfo()
  • pclose()
  • popen()
  • readfile()
  • readlink()
  • realpath()
  • rename()
  • rewind()
  • rmdir()
  • set_file_buffer()
  • stat()
  • symlink()
  • tempnam()
  • tmpfile()
  • touch()
  • umask()
  • unlink()

Filesystem Constants

Filter

Filter Functions

  • filter_has_var()
  • filter_id()
  • filter_input_array()
  • filter_input()
  • filter_list()
  • filter_var_array()
  • filter_var()

Filters

Calendar

Calendar Functions

  • cal_days_in_month()
  • cal_from_jd()
  • cal_info()
  • cal_to_jd()
  • easter_date()
  • easter_days()
  • FrenchToJD()
  • GregorianToJD()
  • JDDayOfWeek()
  • JDMonthName()
  • JDToFrench()
  • JDToGregorian()
  • jdtojewish()
  • JDToJulian()
  • jdtounix()
  • JewishToJD()
  • JulianToJD()
  • unixtojd()

Calendar Constants

FTP

FTP Functions

  • ftp_alloc()
  • ftp_cdup()
  • ftp_chdir()
  • ftp_chmod()
  • ftp_close()
  • ftp_connect()
  • ftp_delete()
  • ftp_exec()
  • ftp_fget()
  • ftp_fput()
  • ftp_get_option()
  • ftp_get()
  • ftp_login()
  • ftp_mdtm()
  • ftp_mkdir()
  • ftp_nb_continue()
  • ftp_nb_fget()
  • ftp_nb_fput()
  • ftp_nb_get()
  • ftp_nb_put()
  • ftp_nlist()
  • ftp_pasv()
  • ftp_put()
  • ftp_pwd()
  • ftp_quit()
  • ftp_raw()
  • ftp_rawlist()
  • ftp_rename()
  • ftp_rmdir()
  • ftp_set_option()
  • ftp_site()
  • ftp_size()
  • ftp_ssl_connect()
  • ftp_systype()

FTP Constants

HTTP

HTTP Functions

  • header()
  • headers_list()
  • headers_sent()
  • setcookie()
  • setrawcookie()

Libxml

Libxml Functions

Libxml Constants

Mail

Mail Functions

  • mail()

Misc.

Misc. Functions

  • connection_aborted()
  • connection_status()
  • constant()
  • define()
  • defined()
  • die()
  • eval()
  • exit()
  • get_browser()
  • highlight_file()
  • highlight_string()
  • ignore_user_abort()
  • pack()
  • php_strip_whitespace()
  • show_source()
  • sleep()
  • time_nanosleep()
  • time_sleep_until()
  • uniqid()
  • unpack()
  • usleep()

Misc. Constants

MySQLi

MySQLi Class

  • mysqli_get_client_stats()
  • mysqli_get_client_version()
  • mysqli::__construct()
  • mysqli::$affected_rows
  • mysqli::$client_info
  • mysqli::$client_version
  • mysqli::$connect_errno
  • mysqli::$connect_error
  • mysqli::$errno
  • mysqli::$error
  • mysqli::$error_list
  • mysqli::$field_count
  • mysqli::$host_info
  • mysqli::$info
  • mysqli::$insert_id
  • mysqli::$protocol_version
  • mysqli::$server_info
  • mysqli::$server_version
  • mysqli::$sqlstate
  • mysqli::$thread_id
  • mysqli::$warning_count
  • mysqli::autocommit()
  • mysqli::change_user()
  • mysqli::character_set_name()
  • mysqli::close()
  • mysqli::commit()
  • mysqli::debug()
  • mysqli::dump_debug_info()
  • mysqli::get_charset()
  • mysqli::get_client_info()
  • mysqli::get_connection_stats()
  • mysqli::get_warnings()
  • mysqli::init()
  • mysqli::kill()
  • mysqli::more_results()
  • mysqli::multi_query()
  • mysqli::next_result()
  • mysqli::options()
  • mysqli::ping()
  • mysqli::poll()
  • mysqli::prepare()
  • mysqli::query()
  • mysqli::real_connect()
  • mysqli::real_escape_string()
  • mysqli::real_query()
  • mysqli::reap_async_query()
  • mysqli::refresh()
  • mysqli::rollback()
  • mysqli::rpl_query_type()
  • mysqli::select_db()
  • mysqli::send_query()
  • mysqli::set_charset()
  • mysqli::set_local_infile_default()
  • mysqli::set_local_infile_handler()
  • mysqli::ssl_set()
  • mysqli::stat()
  • mysqli::stmt_init()
  • mysqli::store_result()
  • mysqli::thread_safe()
  • mysqli::use_result()

MySQLi Stmt Class

MySQLi Result Class

  • mysqli_result::$current_field
  • mysqli_result::$field_count
  • mysqli_result::$lengths
  • mysqli_result::$num_rows
  • mysqli_result::data_seek()
  • mysqli_result::fetch_all()
  • mysqli_result::fetch_array()
  • mysqli_result::fetch_assoc()
  • mysqli_result::fetch_field_direct()
  • mysqli_result::fetch_field()
  • mysqli_result::fetch_fields()
  • mysqli_result::fetch_object()
  • mysqli_result::fetch_row()
  • mysqli_result::field_seek()
  • mysqli_result::free()

MySQLi Driver Class

MySQLi Warning Class

MySQL Constants

SimpleXML

SimpleXML Functions

  • __construct()
  • addAttribute()
  • addChild()
  • asXML()
  • attributes()
  • children()
  • getDocNamespaces()
  • getName()
  • getNamespace()
  • registerXPathNamespace()
  • simplexml_import_dom()
  • simplexml_load_file()
  • simplexml_load_string()
  • xpath()

XML Parser

XML Parser Functions

XML Parser Constants

OOP

Magic Methods

  • __call()
  • __callStatic()
  • __clone()
  • __destruct()
  • __get()
  • __invoke()
  • __isset()
  • __set_state()
  • __set()
  • __sleep()
  • __toString()
  • __unset()
  • __wakeup()

Zip

Zip Functions

  • zip_close()
  • zip_entry_close()
  • zip_entry_compressedsize()
  • zip_entry_compressionmethod()
  • zip_entry_filesize()
  • zip_entry_name()
  • zip_entry_open()
  • zip_entry_read()
  • zip_open()
  • zip_read()