Re: Assigning output of include() to a variable

From: Date: Mon, 10 Sep 2001 06:57:12 +0000
Subject: Re: Assigning output of include() to a variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66669@lists.php.net to get a copy of this message
Zitiere Sid <cyco_sid@phreaker.net>: > For anyone who did not understand me --> Instead of the stupid include() > > function outputing the file contents to the browser I need it to assign Well, don't code so stupidly then... Instead of you stupidly echo'ing each and everything directly, better assign it to a variable, let's say $return. Then you can easily do: <?php include('your.stooopid.file'); echo $return; ?>

« previous php.general (#66669) next »