Using the first and third variables:


SUBMITTED BY: henry1874w

DATE: June 27, 2017, 5:05 p.m.

FORMAT: Text only

SIZE: 131 Bytes

HITS: 256

  1. <?php
  2. $my_array = array("Dog","Cat","Horse");
  3. list($a, , $c) = $my_array;
  4. echo "Here I only use the $a and $c variables.";
  5. ?>

comments powered by Disqus