At 11:12 07.11.2002, Kerry Kobashi said:
--------------------[snip]--------------------
>Is there a way to send print_r output to a file?
--------------------[snip]-------------------- 

rtfm :)
pardon me, but I couldn't resist...

ok, specifically:
http://www.php.net/manual/en/function.print-r.php

Tip: As with anything that outputs its result directly to the browser, you
can use the output-control functions to capture the output of this
function, and save it in a string (for example).

output-control functions: http://www.php.net/manual/en/ref.outcontrol.php

You could, for example:

ob_start();
print_r(your_array);
$result = ob_get_contents();
ob_end_clean();


-- 
   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035
    ^     http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to