Assign the values "Cat", "Dog" and "Horse" to the variables $a, $b and $c:


SUBMITTED BY: henry1874w

DATE: June 26, 2017, 5:21 p.m.

FORMAT: Text only

SIZE: 149 Bytes

HITS: 682

  1. <?php
  2. $a = "Original";
  3. $my_array = array("a" => "Cat","b" => "Dog", "c" => "Horse");
  4. extract($my_array);
  5. echo "\$a = $a; \$b = $b; \$c = $c";
  6. ?>

comments powered by Disqus