Like arrays in other languages, PHP arrays allow you to store multiple values in a single variable and operate on them as a set. PHP offers an extensive array manipulation toolkit—over 60 functions—that lets you process arrays in almost any way imaginable including reversing them, extracting subsets, comparing and sorting, recursively processing, and searching them for specific values.
his document outlines some of the more useful functions in the PHP array with explanations and usage examples:
Function:-
sizeof($arr)
array_values($arr)
array_keys($arr)
array_pop($arr)
array_push($arr, $val)
array_shift($arr)
array_unshift($arr, $val)
each($arr)
sort($arr)
array_flip($arr)
array_reverse($arr)
array_merge($arr)
array_rand($arr)
array_search($search, $arr)
array_slice($arr, $offset, $length)
array_unique($data)array_walk($arr, $func)