"Jule Slootbeek" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > if (foreach ($answer as $a) { echo $a }) > { > return TRUE; > } else { > return FALSE; > }
Seems about right, however by default output is printed to a Page unless you are running your script in the command prompt what you might want to do to avoid messiness is redirect every printout confirmation of your for loop to the std.error (I am not too sure what the path is: it should be in the manuals though - php.net)... Or alternatively to a file using the fopen(fileName, "w+"); then using puts() or fwrite to write the output contents... Spike... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php