Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Same example as the one on top of the page, but with a loop to output the whole array:
SUBMITTED BY:
henry1874w
DATE:
June 26, 2017, 5:16 p.m.
FORMAT:
Text only
SIZE:
166 Bytes
Raw
Download
Tweet
HITS:
385
Go to comments
Report
<?php
$people = array("Peter", "Joe", "Glenn", "Cleveland");
reset($people);
while (list($key, $val) = each($people))
{
echo "$key => $val<br>";
}
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus