0

Strange loop behaviour

Hi all,

I have modified the Delicious.php example to loop as follows:

while($t < 3) { $t++; $yql = new YahooYQLQuery(); $body = "Test about football and newcastle united"; $data = $yql->execute("select * from contentanalysis.analyze where text='$body'"); print_r($data); }

It works ok however the output shows the fetching and responses (all 3 of them). Then prints the output of the print_r command 5 times. This should output:

request/response output print_r output request/response output print_r output request/response output print_r output

But outputs:

request/response output request/response output request/response output print_r output print_r output print_r output

Anyone know what is causing this?

Many thanks in advance!

Sam

by
1 Reply
  • Sorry about the formatting :-/ my line ends seem to have gone astray

    0

Recent Posts

in YQL