Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Return the element key from the current internal pointer position:
SUBMITTED BY:
henry1874w
DATE:
June 26, 2017, 5:25 p.m.
FORMAT:
Text only
SIZE:
123 Bytes
Raw
Download
Tweet
HITS:
897
Go to comments
Report
<?php
$people=array("Peter","Joe","Glenn","Cleveland");
echo "The key from the current position is: " . key($people);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus