Remove First Element from Array using PHP

array_shift function

<?php

$data = [10, 3, 17, 50, 15];
array_shift($data);

print_r($data);

Leave a Comment

Cancel reply

Your email address will not be published.