array_unshift
April 16, 2024
2 minutes of reading
array_unshift() is a PHP function used to add one or more elements to the beginning of an array. It modifies the original array by adding elements at the start rather than at the end.
Here's the basic syntax:
arra...