PHP Remove the first element of an array – PHP April 28, 2011 Pramod T P Leave a comment <?php $sampleDate = array("Test1", "Test2", "Test3", "Test4"); array_shift($sampleDate); print_r($sampleDate); // Array ( [0] => Test2 [1] => Test3 [2] => Test4 ) . // Test1 will be shifted ?>