Re: Is there an alternative to double quotes?
| From: | Adam Voigt | Date: | Wed, 23 Oct 2002 14:14:29 +0000 |
| Subject: | Re: Is there an alternative to double quotes? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121094@lists.php.net to get a copy of this message | ||
I think there's something like:
echo << ENDSTUFF
<input type="hidden" name="a" value="1">
<input type="hidden" name="b" value="1">
ENDSTUFF
And that will echo everything between the echo and when
it hit's ENDSTUFF, my syntax might be off, but I thought I've
seen this before.
Adam Voigt
adam.voigt@cryptocomm.com
On Wed, 2002-10-23 at 10:08, Glen Lee Edwards wrote:
> PERL has an alternative to using double quotes if you have to print one
> or several lines that contain numerous double quotes:
>
> print qq(<form action="registertest.php" method="post">
> <input type="hidden" name="fname" value="$fname">);
>
> The qq() function allows you to use double quotes, and still allows
> variable interpolation. Does PHP have a similar function, or do I have
> to backslash all double quotes all the time?
>
> Regards,
>
> Glen
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>