PHP Classes

output is out of control

Recommend this page to a friend!

      Tweets from User Puller  >  All threads  >  output is out of control  >  (Un) Subscribe thread alerts  
Subject:output is out of control
Summary:had to change the loop
Messages:2
Author:Greg Milby
Date:2012-12-17 03:00:35
Update:2012-12-17 03:37:23
 

  1. output is out of control   Reply   Report abuse  
Picture of Greg Milby Greg Milby - 2012-12-17 03:00:35
instead of the overlapping foreach - just split the object in one for loop - i was getting each tweet 10 times over with the published foreach's

hope this helps:
for($i=0;$i<sizeof($twits->result['date']);$i++) {
echo $twits->result['date'][$i] . ' : ' .
$twits->result['description'][$i] . ' - ' .
$twits->result['link'][$i] . '<br />';
}

  2. Re: output is out of control   Reply   Report abuse  
Picture of Mikhail Mikhail - 2012-12-17 03:37:23 - In reply to message 1 from Greg Milby
Thank you Greg