Get your own PHP server Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<?php
$a=array(0=>"red",1=>"green",2=>"blue");
echo array_shift($a)."<br>";
print_r ($a);
?>
</body>
</html>