PHP array_unshift() function
The array_unshift function inserts new values to the beginning of the array. In the case of the array with numeric keys, the newly inserted elements are assigned the numeric keys starting from 0 and increment by 1. However, string keys remain the same. What is the syntax of the array_unshift function in PHP? Parameter Description …