Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- For loop not showing the entire array
- Kevin Davis
June 19, 2013, 2:34 pm
rate this thread
I'm stuck on something which I know could be simple..
If you look at the following array:
$data = json_decode($result, TRUE);
then I have a counter:
$i = 0;
then of course a loop:
foreach ($data as $temp)
$userId = $data['data']['items'][$i]['id'];
echo $userId . "<BR>";
The problem is that the loop is only going through the first 2 records and there
is more than 2... Is there a reason why?
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum