// Method 1 $fruits = array('apple', 'mango'); array_unshift($fruits, 'banana'); // You will get // [0] => banana // [1] => apple // [2] => mango