Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Remove the first element (red) from an array, and return the value of the removed element:
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:49 p.m.
FORMAT:
Text only
SIZE:
95 Bytes
Raw
Download
Tweet
HITS:
429
Go to comments
Report
<?php
$a=array("a"=>"red","b"=>"green","c"=>"blue");
echo array_shift($a);
print_r ($a);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus