Re: Escaping double quotes

From: Date: Thu, 25 May 2006 19:52:49 +0000
Subject: Re: Escaping double quotes
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-236908@lists.php.net to get a copy of this message
or heredeoc syntax :) On 5/25/06, John Nichel <john@kegworks.com> wrote:
Pavleck, Jeremy D. wrote: So I'm writing this page (PHP Newbie here) and it checks to see if a var is set, if it isn't it spits out the form info like so: echo "<form action="myform.php" method="post">"; Now is there a way to 'wrap' that so I don't have to escape quotes? Something like perls 'qq' function is what I'm looking for. I tried a few different functions from the website, magic_quotes, addslashes, htmlspecial etc etc but none did what I was looking for http://us2.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 jnichel@dotcomholdingsofbuffalo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Mindaugas

« previous php.general (#236908) next »