Re: variables.

From: Date: Sun, 25 Jun 2000 03:20:29 +0000
Subject: Re: variables.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2952@lists.php.net to get a copy of this message
In PHP 3.0.x: $test = ' blah blah '; But you would have to escape any single quotes. Anything else is literal. In PHP 4.0.x: $test = <<<STOP blah blah STOP; -Rasmus On Sun, 25 Jun 2000, Glen Ogilvie wrote: > Hi > in perl, I can do this > > use CGI; > $test = << "TOSTOP" > <this is the contence of test > etc, etc > <html> "etc" > etc, > > TOSTOP > > and it puts everything between $test line and the TOSTOP line into $test > > how can I do this in PHP? > any help would be great, or telling me the name of the function that would do > this > > Thank guys > -- > Glen Ogilvie > New Zealand > >

« previous php.general (#2952) next »