0
jaydeep posted
PHP :: array next index in every call
how can i print next index of array by each webpage request .let me show you what i have
<?php
$array=array("first call","second call","third call","forth call")
foreach($array as $value){
echo $value;
}
?>
now it print all but i need to print only one value of array which is next index of array by each page call so
suppose if i load web page first time it should print first call , than in second time it should print second call so on... hope you get the my question