Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
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
Raw
Download
Tweet
HITS:
293
Go to comments
Report
<?php
$people = array("Peter", "Joe", "Glenn", "Cleveland");
echo current($people) . "<br>";
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus