Is there an alternative to double quotes?
| From: | Glen Lee Edwards | Date: | Wed, 23 Oct 2002 14:08:28 +0000 |
| Subject: | Is there an alternative to double quotes? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121088@lists.php.net to get a copy of this message | ||
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