View Single Post
  #1  
Old 05-06-2007, 10:48 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Printf() in loops

Using printf() in loops seems to break the loop.
PHP Code:
function onCreated()
{
  
this.array ={"I","really","really","like","pie"};
  for (
temp.this.array)
    
printf("[Blah?]: %s",temp.t);
  echo(
"--");
  for (
temp.this.array)
    echo(
format("[Blah?]: %s",temp.t));  

echos
PHP Code:
[Blah?]: I
--
[
Blah?]: I
[Blah?]: really
[Blah?]: really
[Blah?]: like
[Blah?]: pie 
Any idea why printf is breaking the loop? This was tested on Zodiac.
Reply With Quote