PHP library reference
Learn everyday PHP library methods through shopping lists, ticket bookings, delivery dates, and other familiar tasks.
Math and money
Calculate a change in temperature, pack boxes, or round a bill.
28 guidesStrings and input
Clean up names, compare codes, and read quantities from a form.
30 guidesFiles and paths
Build a receipt path, save a note, or read a shopping list.
15 guidesErrors and exceptions
Handle invalid entries, missing records, and interrupted work. Follow each failure from the input that triggers it to a response the user can act on.
19 guidesLists and maps
Work with ordered lists and key-value lookups. Follow a pickup roster, change a booking, or combine stock counts from two deliveries.
26 guidesDates and time
Calculate a delivery date or count nights between bookings.
4 guidesMore library topics
Explore additional libraries and worked examples for this language.
13 guidesOfficial documentation
PHP function and extension reference
Function groups and extensions in the PHP manual
- 0MQ messaging
- Apache
- APCu
- Arrays
- BC Math
- Bzip2
- Calendar
- Classes/Objects
- COM
- CommonMark
- Componere
- Ctype
- cURL
- Data Structures
- Date/Time
- Direct IO
- Directories
- DOM
- Eio
- Enchant
- Error Handling
- Ev
- Event
- Exif
- Expect
- FANN
- FastCGI Process Manager
- FDF
- FFI
- Fileinfo
- Filesystem
- Filter
- FTP
- Function Handling
- GD
- Gearman
- Gender
- GeoIP
- Gettext
- Gmagick
- GMP
- GnuPG
- Hash
- HRTime
- iconv
- Igbinary
- ImageMagick
- IMAP
- Inotify
- intl
- IO
- JSON
- LDAP
- libxml
- LiteSpeed
- Lua
- LuaSandbox
- LZF
- Mailparse
- Math
- Mcrypt
- Memcache
- Memcached
- Mhash
- Misc.
- mqseries
- Multibyte String
- Network
- OAuth
- OPcache
- OpenAL
- OpenSSL
- Operator Overloading
- Output Control
- parallel
- Parle
- Password Hashing
- PCNTL
- PCRE
- Phar
- PHP Options/Info
- phpdbg
- POSIX
- Program execution
- PS
- Pspell
- pthreads
- Quickhash
- Radius
- Random
- Rar
- Readline
- Recode
- Reflection
- Rnp
- RpmInfo
- RRD
- runkit7
- ScoutAPM
- Seaslog
- Semaphore
- Sessions
- Shared Memory
- Simdjson
- SimpleXML
- SNMP
- SOAP
- Sockets
- Sodium
- Solr
- SPL
- ssdeep
- SSH2
- Statistics
- Stomp
- Streams
- Strings
- SVM
- SVN
- Swoole
- Sync
- Taint
- TCP
- Tidy
- Tokenizer
- Trader
- UI
- uopz
- URI
- URLs
- V8js
- var_representation
- Variable handling
- Varnish
- WDDX
- win32service
- WinCache
- wkhtmltox
- xattr
- xdiff
- Xhprof
- XLSWriter
- XML Parser
- XML-RPC
- XMLDiff
- XMLReader
- XMLWriter
- Xpass
- XSL
- Yac
- Yaconf
- Yaf
- Yaml
- Yar
- YAZ
- Zip
- Zlib
- ZooKeeper