There are numerous built-in functions for array manipulation.
Use count to get the total number of values in your array.
Use array_count_values() to count the occurences of a specific value.
The implode() function is used to turn an array into a string. It accepts an array value and a separator.
The explode() function does the reverse of imploder() and its used to turn a string into an array. It accepts a string and separator.
The array_pop() is used to remove the last element from an array.
The array_push() is used to add a new element add the end of an array.