The PHP language has an extensive set of functions available to be used by anyone developing a PHP application. Project Zero currently supports the PHP language and a subset of the popular functions. More functions are being added all the time. To see the currently implemented list look at
.
This page shows the PHP functions we intend to support over the coming months. Look for the function category in the
for the next milestone and then see the list of functions in the table below. Note that the priority of these functions can change as we receive feedback from users. And we may implement some other functions not in this list if we find they make sense to implement at the same time as another one.
| Function Category | Function Name | Available? |
| Array Functions | array_change_key_case | yes |
| Array Functions | array_diff | |
| Array Functions | array_diff_assoc | |
| Array Functions | array_fill | |
| Array Functions | array_filter | |
| Array Functions | array_flip | |
| Array Functions | array_intersect | |
| Array Functions | array_intersect_assoc | |
| Array Functions | array_keys | yes |
| Array Functions | array_map | yes |
| Array Functions | array_merge | yes |
| Array Functions | array_pop | yes |
| Array Functions | array_push | yes |
| Array Functions | array_rand | |
| Array Functions | array_reverse | yes |
| Array Functions | array_search | yes |
| Array Functions | array_shift | yes |
| Array Functions | array_slice | yes |
| Array Functions | array_splice | yes |
| Array Functions | array_unique | yes |
| Array Functions | array_unshift | yes |
| Array Functions | array_values | yes |
| Array Functions | array_walk | |
| Array Functions | asort | yes |
| Array Functions | current | yes |
| Array Functions | each | yes |
| Array Functions | end | yes |
| Array Functions | extract | yes |
| Array Functions | in_array | yes |
| Array Functions | key | yes |
| Array Functions | krsort | yes |
| Array Functions | ksort | yes |
| Array Functions | next | yes |
| Array Functions | range | yes |
| Array Functions | reset | yes |
| Array Functions | shuffle | |
| Array Functions | sizeof | yes |
| Array Functions | sort | yes |
| Array Functions | uasort | |
| Bzip2 Compression Functions | bzdecompress | |
| Class-Object Functions | class_exists | yes |
| Class-Object Functions | get_class | yes |
| Class-Object Functions | get_object_vars | yes |
| Class-Object Functions | is_a | yes |
| Class-Object Functions | method_exists | yes |
| Date and Time Functions | checkdate | yes |
| Date and Time Functions | date | yes |
| Date and Time Functions | getdate | yes |
| Date and Time Functions | gmdate | yes |
| Date and Time Functions | gmmktime | yes |
| Date and Time Functions | microtime | yes |
| Date and Time Functions | mktime | yes |
| Date and Time Functions | time | yes |
| Directory Functions | closedir | |
| Directory Functions | getcwd | |
| Directory Functions | opendir | |
| Directory Functions | readdir | |
| Error Handling and Logging Functions | debug_backtrace | yes |
| Error Handling and Logging Functions | error_reporting | yes |
| Error Handling and Logging Functions | set_error_handler | yes |
| Error Handling and Logging Functions | trigger_error | yes |
| FTP Functions | ftp_chdir | |
| FTP Functions | ftp_chmod | |
| FTP Functions | ftp_connect | |
| FTP Functions | ftp_delete | |
| FTP Functions | ftp_login | |
| FTP Functions | ftp_mkdir | |
| FTP Functions | ftp_nlist | |
| FTP Functions | ftp_pasv | |
| FTP Functions | ftp_put | |
| FTP Functions | ftp_pwd | |
| FTP Functions | ftp_quit | |
| FTP Functions | ftp_rename | |
| FTP Functions | ftp_rmdir | |
| FTP Functions | ftp_site | |
| Filesystem Functions | basename | yes |
| Filesystem Functions | chmod | |
| Filesystem Functions | copy | |
| Filesystem Functions | dirname | yes |
| Filesystem Functions | disk_free_space | |
| Filesystem Functions | fclose | yes |
| Filesystem Functions | feof | yes |
| Filesystem Functions | fgets | |
| Filesystem Functions | file | yes |
| Filesystem Functions | file_exists | yes |
| Filesystem Functions | file_get_contents | yes |
| Filesystem Functions | filemtime | yes |
| Filesystem Functions | fileperms | yes |
| Filesystem Functions | filesize | yes |
| Filesystem Functions | flock | |
| Filesystem Functions | fopen | yes |
| Filesystem Functions | fputs | yes |
| Filesystem Functions | fread | yes |
| Filesystem Functions | fseek | yes |
| Filesystem Functions | fwrite | yes |
| Filesystem Functions | glob | |
| Filesystem Functions | is_dir | |
| Filesystem Functions | is_file | |
| Filesystem Functions | is_link | |
| Filesystem Functions | is_readable | yes |
| Filesystem Functions | is_uploaded_file | |
| Filesystem Functions | is_writable | yes |
| Filesystem Functions | mkdir | yes |
| Filesystem Functions | move_uploaded_file | |
| Filesystem Functions | pathinfo | |
| Filesystem Functions | readfile | |
| Filesystem Functions | readlink | yes |
| Filesystem Functions | realpath | |
| Filesystem Functions | rename | yes |
| Filesystem Functions | rewind | yes |
| Filesystem Functions | stat | yes |
| Filesystem Functions | tempnam | |
| Filesystem Functions | touch | |
| Filesystem Functions | umask | |
| Filesystem Functions | unlink | yes |
| Function Handling Functions | call_user_func | yes |
| Function Handling Functions | call_user_func_array | yes |
| Function Handling Functions | create_function | yes |
| Function Handling Functions | func_get_arg | yes |
| Function Handling Functions | func_get_args | yes |
| Function Handling Functions | function_exists | yes |
| Function Handling Functions | register_shutdown_function | yes |
| Image Functions | getimagesize | |
| Image Functions | image_type_to_mime_type | |
| Image Functions | imagecolorallocate | |
| Image Functions | imagecopyresampled | |
| Image Functions | imagecopyresized | |
| Image Functions | imagecreate | |
| Image Functions | imagecreatefromgif | |
| Image Functions | imagecreatefromjpeg | |
| Image Functions | imagecreatefrompng | |
| Image Functions | imagecreatefromwbmp | |
| Image Functions | imagecreatetruecolor | |
| Image Functions | imagedashedline | |
| Image Functions | imagedestroy | |
| Image Functions | imagefill | |
| Image Functions | imagefilledpolygon | |
| Image Functions | imagegif | |
| Image Functions | imagejpeg | |
| Image Functions | imageline | |
| Image Functions | imagepng | |
| Image Functions | imagepolygon | |
| Image Functions | imagesetstyle | |
| Image Functions | imagesetthickness | |
| Image Functions | imagetypes | |
| Image Functions | imagewbmp | |
| LDAP Functions | ldap_bind | yes |
| LDAP Functions | ldap_close | yes |
| LDAP Functions | ldap_connect | yes |
| LDAP Functions | ldap_get_entries | yes |
| LDAP Functions | ldap_search | yes |
| LDAP Functions | ldap_set_option | yes |
| Mathematical Functions | abs | yes |
| Mathematical Functions | base_convert | yes |
| Mathematical Functions | ceil | yes |
| Mathematical Functions | decbin | yes |
| Mathematical Functions | floor | yes |
| Mathematical Functions | hexdec | yes |
| Mathematical Functions | max | yes |
| Mathematical Functions | min | yes |
| Mathematical Functions | mt_rand | yes |
| Mathematical Functions | mt_srand | yes |
| Mathematical Functions | octdec | yes |
| Mathematical Functions | pow | yes |
| Mathematical Functions | rand | yes |
| Mathematical Functions | round | yes |
| Mathematical Functions | sqrt | yes |
| Mathematical Functions | srand | yes |
| Miscellaneous Functions | define | yes |
| Miscellaneous Functions | defined | yes |
| Miscellaneous Functions | highlight_string | yes |
| Miscellaneous Functions | pack | yes |
| Miscellaneous Functions | uniqid | yes |
| Miscellaneous Functions | unpack | yes |
| Multibyte String Functions | mb_convert_encoding | yes |
| Multibyte String Functions | mb_ereg_replace | yes |
| Multibyte String Functions | mb_ereg | yes |
| Multibyte String Functions | mb_split | yes |
| Multibyte String Functions | mb_internal_encoding | yes |
| Multibyte String Functions | mb_regex_encoding | yes |
| Multibyte String Functions | mb_strlen | yes |
| Multibyte String Functions | mb_strpos | yes |
| Multibyte String Functions | mb_strrpos | yes |
| Multibyte String Functions | mb_strtolower | yes |
| Multibyte String Functions | mb_strtoupper | yes |
| Multibyte String Functions | mb_substr | yes |
| Multibyte String Functions | mb_substr_count | yes |
| Network Functions | checkdnsrr | |
| Network Functions | dns_get_record | |
| Network Functions | fsockopen | |
| Network Functions | gethostbyaddr | yes |
| Network Functions | gethostbynamel | yes |
| Network Functions | header | |
| Network Functions | headers_sent | |
| Network Functions | socket_set_blocking | |
| Network Functions | socket_set_timeout | |
| Output Control Functions | flush | |
| Output Control Functions | ob_end_clean | |
| Output Control Functions | ob_get_clean | yes |
| Output Control Functions | ob_get_length | |
| Output Control Functions | ob_start | |
| PHP Options&Information | dl | |
| PHP Options&Information | extension_loaded | yes |
| PHP Options&Information | get_cfg_var | yes |
| PHP Options&Information | get_defined_constants | |
| PHP Options&Information | get_magic_quotes_gpc | |
| PHP Options&Information | getenv | |
| PHP Options&Information | ini_get | yes |
| PHP Options&Information | ini_set | yes |
| PHP Options&Information | memory_get_usage | |
| PHP Options&Information | php_uname | |
| PHP Options&Information | phpinfo | |
| PHP Options&Information | set_magic_quotes_runtime | |
| PHP Options&Information | set_time_limit | |
| PHP Options&Information | version_compare | |
| PHP Options&Information | zend_version | |
| Program Execution Functions | escapeshellarg | |
| Program Execution Functions | escapeshellcmd | |
| Program Execution Functions | exec | |
| Program Execution Functions | passthru | |
| Regular Expression Functions (Perl-Compatible) | preg_match | |
| Regular Expression Functions (Perl-Compatible) | preg_match_all | |
| Regular Expression Functions (Perl-Compatible) | preg_quote | |
| Regular Expression Functions (Perl-Compatible) | preg_replace | |
| Regular Expression Functions (Perl-Compatible) | preg_replace_callback | |
| Regular Expression Functions (Perl-Compatible) | preg_split | |
| Stream Functions | stream_get_meta_data | |
| Stream Functions | stream_get_wrappers | |
| Stream Functions | stream_set_timeout | |
| Stream Functions | stream_socket_enable_crypto | |
| String Functions | addslashes | yes |
| String Functions | chop | yes |
| String Functions | chr | yes |
| String Functions | chunk_split | yes |
| String Functions | crc32 | yes |
| String Functions | explode | yes |
| String Functions | get_html_translation_table | |
| String Functions | hebrev | |
| String Functions | htmlspecialchars | yes |
| String Functions | htmlspecialchars_decode | |
| String Functions | implode | yes |
| String Functions | join | yes |
| String Functions | md5 | yes |
| String Functions | nl2br | |
| String Functions | ord | yes |
| String Functions | rtrim | yes |
| String Functions | setlocale | yes |
| String Functions | sprintf | yes |
| String Functions | str_pad | yes |
| String Functions | str_repeat | yes |
| String Functions | str_replace | yes |
| String Functions | str_split | yes |
| String Functions | strcasecmp | yes |
| String Functions | strcspn | yes |
| String Functions | strip_tags | yes |
| String Functions | stripos | yes |
| String Functions | stripslashes | yes |
| String Functions | strlen | yes |
| String Functions | strncasecmp | |
| String Functions | strncmp | |
| String Functions | strpos | yes |
| String Functions | strrchr | yes |
| String Functions | strrev | yes |
| String Functions | strrpos | |
| String Functions | strspn | yes |
| String Functions | strstr | yes |
| String Functions | strtok | yes |
| String Functions | strtolower | yes |
| String Functions | strtoupper | yes |
| String Functions | strtr | |
| String Functions | substr | yes |
| String Functions | substr_count | yes |
| String Functions | trim | yes |
| String Functions | ucfirst | yes |
| String Functions | ucwords | yes |
| String Functions | vsprintf | |
| String Functions | wordwrap | yes |
| URL Functions | base64_decode | yes |
| URL Functions | base64_encode | yes |
| URL Functions | parse_url | yes |
| URL Functions | rawurlencode | yes |
| URL Functions | urldecode | yes |
| URL Functions | urlencode | yes |
| Variable Handling Functions | doubleval | yes |
| Variable Handling Functions | floatval | yes |
| Variable Handling Functions | get_defined_vars | yes |
| Variable Handling Functions | gettype | yes |
| Variable Handling Functions | intval | yes |
| Variable Handling Functions | is_array | yes |
| Variable Handling Functions | is_bool | yes |
| Variable Handling Functions | is_int | yes |
| Variable Handling Functions | is_null | yes |
| Variable Handling Functions | is_numeric | yes |
| Variable Handling Functions | is_object | yes |
| Variable Handling Functions | is_resource | yes |
| Variable Handling Functions | is_string | yes |
| Variable Handling Functions | print_r | yes |
| Variable Handling Functions | serialize | yes |
| Variable Handling Functions | settype | yes |
| Variable Handling Functions | strval | yes |
| Variable Handling Functions | unserialize | |
| Variable Handling Functions | var_export | yes |
| XML Parser Functions | utf8_decode | yes |
| XML Parser Functions | utf8_encode | yes |
| XML Parser Functions | xml_parse_into_struct | yes |
| XML Parser Functions | xml_parser_create | yes |
| XML Parser Functions | xml_parser_free | yes |
| XML Parser Functions | xml_parser_set_option | yes |
| Zlib Compression Functions | gzcompress | yes |
| Zlib Compression Functions | gzdeflate | yes |
| Zlib Compression Functions | gzinflate | yes |
| hash Functions | hash | yes |
| iconv Functions | iconv | yes |