PHP Simple QA
It contains Simple Questions and Answers in PHP
array_slice syntax in php
array_slice syntax in php
array_slice(array,start,length,preserve);
Example of array_slice in php
<?php
$array=array(0=>"hi",1=>"di",2=>"si",3=>"vi");
print_r(array_slice($a,1,2));
?>
Result will be:
Array ( [0] =>hi [1] => di )
Newer Post
Older Post
Home