Re: qq! ... ! syntax in PHP?
| From: | Patrick Meisel | Date: | Mon, 12 Jun 2000 09:59:53 +0000 |
| Subject: | Re: qq! ... ! syntax in PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1601@lists.php.net to get a copy of this message | ||
Hi,
I'm not quite sure, hwat you mean, but if I understand you right, you
can use:
$var = "$variable
blah blah
blah
";
Patrick Meisel
> The name of this syntax is escaping me in PERL, but I am wondering if
> this exists in PHP?
>
> In PERL I can do the following:
> $var = qq!
> blah blah
> blah
> !;
> Then I can print out $var, also include variables inside that block!
>
> I would like to do something similar in PHP... can I?
>
> Thanks for any help!
>
> Nick
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net