Create an associative array named $age:


SUBMITTED BY: henry1874w

DATE: June 22, 2017, 12:01 a.m.

FORMAT: Text only

SIZE: 112 Bytes

HITS: 259

  1. <?php
  2. $age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
  3. echo "Peter is " . $age['Peter'] . " years old.";
  4. ?>

comments powered by Disqus