Output the value of the current element in an array:


SUBMITTED BY: henry1874w

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

FORMAT: Text only

SIZE: 100 Bytes

HITS: 293

  1. <?php
  2. $people = array("Peter", "Joe", "Glenn", "Cleveland");
  3. echo current($people) . "<br>";
  4. ?>

comments powered by Disqus