Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Using a negative start parameter:
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:52 p.m.
FORMAT:
Text only
SIZE:
91 Bytes
Raw
Download
Tweet
HITS:
978
Go to comments
Report
<?php
$a=array("red","green","blue","yellow","brown");
print_r(array_slice($a,-2,1));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus