Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Start the slice from from the second array element, and return only two elements:
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:51 p.m.
FORMAT:
Text only
SIZE:
90 Bytes
Raw
Download
Tweet
HITS:
841
Go to comments
Report
<?php
$a=array("red","green","blue","yellow","brown");
print_r(array_slice($a,1,2));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus