Associative arrays


SUBMITTED BY: henry1874w

DATE: June 17, 2017, 1:08 p.m.

FORMAT: Text only

SIZE: 171 Bytes

HITS: 254

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <?php
  5. $age = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43");
  6. echo "Peter is " . $age['Peter'] . " years old.";
  7. ?>
  8. </body>
  9. </html>

comments powered by Disqus