Functions in PHP allow developers to write scripts to perform actions. Functions can be native, part of a PHP extension, part of a PHP library or framework, or created in a user script.
Native/Extension Functions
Native functions and functions found in extensions are listed here. All of these are either part of the PHP core or may be added on to a PHP installation.
Behavior Affecting
- Main article: Behavior Affecting Functions
- APC - provides alterntive caching mechanism[1]
- APD - allows more complex debugging[1]
- bcompiler - bytecode compiling[1]
- Error Handling - error handling and logging functionality[1]
- htscanner - allows SAPI support[1]
- inclued - allows viewing of inclusion hierarchy[1]
- Memtrack - tracks memory for error handling[1]
- Output Control - controls output buffering[1]
- PHP Options/Info - options and information[1]
- runkit - gives further runtime options[1]
- scream - breaks silence operator[1]
- Weakref - adds weak reference functionality[1]
- WinCache - Windows cache[1]
- Xhprof - hierarchical profiling[1]
Audio Manipulation
- Main article: Audio Manipulation Functions
- ID3 - ID3 tags[2]
- KTaglib - multiple file, tag, and MIME functions[2]
- oggvorbis - OGG and Vorbis[2]
- OpenAL - adds OpenAL audio bindings[2]
Authentication
- Main article: Authentication Functions
Date and Time
- Main article: Date and Time Functions
Command Line Specific
- Main article: Command Line Specific Functions
- Ncurses - adds terminal screen control[5]
- Newt - additional terminal functions[5]
- Readline - adds GNU Readline[5]
Compression and Archives
- Main article: Compression and Archives Functions
- Bzip2 - dealing with bzip2 data[6]
- LZF - compression and decompression[6]
- Phar - archive interface[6]
- Rar - adds rar archiving[6]
- Zip - adds zip archiving[6]
- Zlib - adds Zlib compresion[6]
Credit Cards
- Main article: Credit Card Functions
Cryptography
- Main article: Cryptography Functions
- Crack - adds Cracklib functions[8]
- Hash - adds HASH framework functions[8]
- Mcrypt - adds encryption functions[8]
- Mhash - adds a few hashing functions[8]
- OpenSSL - adds SSL interface[8]
Database
- Main article: Database Functions
Abstraction Layers
- Main article: Abstraction Layers
- DBA - database abstraction layer[9]
- dbx - database functions[9]
- ODBC - open database connectivity functions[9]
- PDO - PHP data objects[9]
Vendor Specific Database Extensions
- Main article: Vendor Specific Database Extensions
- CUBRID - CUBRID database access[10]
- DB++ - db++ server access[10]
- dBase - dbf database connectivity[10]
- filePro - filePro database read-only access[10]
- Firebird/InterBase - relational database server access[10]
- FrontBase - FrontBase connectivity[10]
- IBM DB2 - connect to IBM DB2 universal databases[10]
- Informix - database connection functions[10]
- Ingres - query Ingres DBMS[10]
- MaxDB - access MaxDB functionality[10]
- Mongo - native driver for MongoDB[10]
- mSQL - mSQL server access[10]
- Mssql - access Microsoft SQL server[10]
- MySQL - MySQL API access[10]
- OCI8 - access to OCI8 from Oracle[10]
- Ovrimos SQL - RDBMS SQL server access[10]
- Paradox - allows Paradox file access[10]
- PostgreSQL - PostgreSQL server connectivity functions[10]
- SQLite - SQLite connecting functions[10]
- SQLite3 - SQLite3 connecting[10]
- SQLSRV - Microsoft SQL server driver[10]
- Sybase - Sybase connecting[10]
- tokyo tyrant - wraps Tokyo Tyrant libraries[10]
File System
- Main article: File System Functions
- Direct IO - input/output functions[11]
- Directories - PHP directory functions[11]
- Fileinfo - provides file information[11]
- Filesystem - provides filesystem functions[11]
- Inotify - deal with inotify instances[11]
- Mimetype - file info[11]
- Proctitle - changing process names[11]
- xattr - manipulation of extended attributes[11]
- xdiff - dealing with patch files[11]
Language/Character Encoding
- Main article: Language/Character Encoding Functions
- Enchant - spelling library[12]
- FriBiDi - unicode bidirectional algorithm[12]
- Gettext - NLS API for internationalizing[12]
- iconv - iconv character conversio interface[12]
- intl - internationalization of scripts[12]
- Multibye String - multibyte string functions[12]
- Pspell - spell checking function[12]
- Recode - GNUE Recode library interface[12]
Images
- Main article: Image Functions
- Cairo - modify graphics with Cairo library[13]
- Exif - exchangeable image information[13]
- GD - image processing functions[13]
- Gmagick - GraphicsMagick API functions[13]
- ImageMagick - adds image processing functionality[13]
- Main article: Mail Functions
- Cyrus - adds Cyrus IMAP administration[14]
- IMAP - adds NNTP, POP3, and IMAP support[14]
- Mail - built in mail functions[14]
- Mailparse - email parsing functions[14]
- vpopmail - Qmail addon functions[14]
Math
- Main article: Math Functions
MIME Output
- Main article: MIME Output Functions
Process Control
- Main article: Process Control Functions
Other Basic
- Main article: Other Basic Functions
Other Services
- Main article: Other Service Functions
Search Engine
- Main article: Search Engine Functions
Server Specific
- Main article: Server Specific Functions
Session
- Main article: Session Functions
Text Processing
- Main article: Text Processing Functions
Variables
- Main article: Variable Functions
Web Services
- Main article: Web Service Functions
Windows Only
- Main article: Windows Functions
XML
- Main article: XML Functions
References
- ↑ 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 http://www.php.net/manual/en/refs.basic.php.php
- ↑ 2.0 2.1 2.2 2.3 http://www.php.net/manual/en/refs.utilspec.audio.php
- ↑ 3.0 3.1 http://www.php.net/manual/en/refs.remote.auth.php
- ↑ 4.0 4.1 http://www.php.net/manual/en/refs.calendar.php
- ↑ 5.0 5.1 5.2 http://www.php.net/manual/en/refs.utilspec.cmdline.php
- ↑ 6.0 6.1 6.2 6.3 6.4 6.5 http://www.php.net/manual/en/ref.bzip2.php
- ↑ 7.0 7.1 http://www.php.net/manual/en/refs.creditcard.php
- ↑ 8.0 8.1 8.2 8.3 8.4 http://www.php.net/manual/en/refs.crypto.php
- ↑ 9.0 9.1 9.2 9.3 http://www.php.net/manual/en/refs.database.abstract.php
- ↑ 10.00 10.01 10.02 10.03 10.04 10.05 10.06 10.07 10.08 10.09 10.10 10.11 10.12 10.13 10.14 10.15 10.16 10.17 10.18 10.19 10.20 10.21 10.22 http://www.php.net/manual/en/refs.database.vendors.php
- ↑ 11.0 11.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8 http://www.php.net/manual/en/funcref.php
- ↑ 12.0 12.1 12.2 12.3 12.4 12.5 12.6 12.7 http://www.php.net/manual/en/refs.international.php
- ↑ 13.0 13.1 13.2 13.3 13.4 http://www.php.net/manual/en/refs.utilspec.image.php
- ↑ 14.0 14.1 14.2 14.3 14.4 http://www.php.net/manual/en/refs.remote.mail.php