I just implemented count function in php that return number of elements in a array.
function mycount($arr)
{
$i=0;
while(!empty($arr[$i])){
$coun=$i;
$i++;
}
return $coun+1;
}
now we can use this methode to get number of elements in array. If you think there is any problem or issue let me know.
thanks in advance..

New Topic/Question
Reply



MultiQuote












|