Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
With both string and integer keys:
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:53 p.m.
FORMAT:
Text only
SIZE:
223 Bytes
Raw
Download
Tweet
HITS:
1090
Go to comments
Report
<?php
$a=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow","e"=>"brown");
print_r(array_slice($a,1,2));
$a=array("0"=>"red","1"=>"green","2"=>"blue","3"=>"yellow","4"=>"brown");
print_r(array_slice($a,1,2));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus