Not sure I understand your question correctly. I think you can just use
soemthing like:
echo '';
Mindaugas L wrote:
or heredeoc syntax :)
On 5/25/06, John Nichel <[EMAIL PROTECTED]> wrote:
Pavleck, Jeremy D. wrote:
> So I'm writing this page (PHP Newbie here) and it checks to see if a
var
or heredeoc syntax :)
On 5/25/06, John Nichel <[EMAIL PROTECTED]> 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 " action="myform.php" method="post">";
> Now is there a wa
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 "";
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 tr
> 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 " 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 lo
On 25/05/06, Pavleck, Jeremy D. <[EMAIL PROTECTED]> 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 "";
Now is there a way to 'wrap' that so I don't have to escape quotes?
Something like perls 'qq' funct
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 "";
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 function
addslashes() usually works for me...
--Joe
On Sun, Feb 25, 2001 at 01:46:30AM -0500, Ben Cheng wrote:
> How do you escape double quotes? I have the following which is
> supposed to make any " in a string into \" but it doesn't seem to
> work. What's wrong with it?
>
> $tmp_string = str_repl
How do you escape double quotes? I have the following which is
supposed to make any " in a string into \" but it doesn't seem to
work. What's wrong with it?
$tmp_string = str_replace ("\"", "\\\"", $tmp_string);
-Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
8 matches
Mail list logo