I have an array:
$response['ids']
and
var_dump($response['ids']);
gives me this result:
array(849) { [0]=> int(75740521) [1]=> int(148743815) [2]=> int(14135942) [3]=> int(516369973) [4]=> int(18667319)
So, I try to get these values using this routine:
$i=0;
while($i <= $nrof){
$friendsid = $friends['ids'][$i];
echo "Friend $i-id: $friendsid<br />";
$i++;
}
But I get no values out of it, $friends['ids'][$i] is always empty.
You are var_dumping
$responsebut are looping over$friends