Assignment in line, does not remove the element.
$first = array_shift( $arr = array( 0 => '1st', 2 => '2nd', 3 => '3rd') );
print_r( $first );
print_r( $arr );
Output:
1st
Array
(
[0] => 1st
[2] => 2nd
[3] => 3rd
)
Assignment in line, does not remove the element.
$first = array_shift( $arr = array( 0 => '1st', 2 => '2nd', 3 => '3rd') );
print_r( $first );
print_r( $arr );
Output:
1st
Array
(
[0] => 1st
[2] => 2nd
[3] => 3rd
)