PHP Functions by Category

This is a list of functions provided by PHP’s built-in extensions, grouped by the extension providing each function.

Arrays

array_change_key_casearray_intersect_assoc
array_chunkarray_intersect_key
array_combinearray_intersect_uassoc
array_count_valuesarray_intersect_ukey
array_diffarray_key_exists
array_diff_assocarray_keys
array_diff_keyarray_map
array_diff_uassocarray_merge
array_diff_ukeyarray_merge_recursive
array_fillarray_multisort
array_fill_keysarray_pad
array_filterarray_pop
array_fliparray_product
array_intersectarray_push
array_randcompact
array_reducecount
array_replacecurrent
array_replace_recursiveeach
array_reverseend
array_searchextract
array_shiftin_array
array_slicekey
array_splicekrsort
array_sumksort
array_udifflist
array_udiff_assocnatcasesort
array_udiff_uassocnatsort
array_uintersectnext
array_uintersect_assocprev
array_uintersect_uassocrange
array_uniquereset
array_unshiftrsort
array_valuesshuffle
array_walksort
array_walk_recursiveuasort
arsortuksort
asortusort

Classes and Objects

class_aliasget_object_vars
class_existsget_parent_class
get_called_classinterface_exists
get_class_methodsis_a
get_class_varsis_subclass_of
get_classmethod_exists
get_declared_classesproperty_exists
get_declared_interfacestrait_exists
get_declared_traits 

Date and Time

checkdatedate_default_timezone_set
date_default_timezone_getdate_parse_from_format
date_parseidate
date_sun_infolocaltime
date_sunrisemicrotime
date_sunsetmktime
datestrftime
getdatestrptime
gettimeofdaystrtotime
gmdatetime
gmmktimetimezone_name_from_abbr ...

Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.