Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Output the value of the current and the next element in the array:
SUBMITTED BY:
henry1874w
DATE:
June 27, 2017, 5:07 p.m.
FORMAT:
Text only
SIZE:
121 Bytes
Raw
Download
Tweet
HITS:
376
Go to comments
Report
<?php
$people = array("Peter", "Joe", "Glenn", "Cleveland");
echo current($people) . "<br>";
echo next($people);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus