note 14038 added to function.echo.php

From: Date: Sat, 14 Jul 2001 11:49:34 +0000
Subject: note 14038 added to function.echo.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15371@lists.php.net to get a copy of this message
Is there a way to redirect output from echo or print so it can be sent into a file? Say I have a function: function create_code() { echo "some code"; } I want to sometimes output this in the browser, and sometimes save the output in a file... How is this done? http://www.php.net/manual/en/function.echo.php

« previous php.notes (#15371) next »