Using numeric keys:


SUBMITTED BY: henry1874w

DATE: June 25, 2017, 2:50 p.m.

FORMAT: Text only

SIZE: 89 Bytes

HITS: 452

  1. <?php
  2. $a=array(0=>"red",1=>"green",2=>"blue");
  3. echo array_shift($a);
  4. print_r ($a);
  5. ?>

comments powered by Disqus