Page 1 of 1

Echo and quotes characters

Posted: Thu Jul 31, 2003 12:28 pm
by millan
:?:

Hi,

I want to echo the following line:

<a href "test.php" onmouseover="displaystatus('test page');" onmouseout="displaystatus('not test page');">test</a>

When I use echo, I need to change double quote (") with single quote (') because echo use double quote. But then I have a problem with single quote characters.
It should be a part of function ,and alse could contain php string insted of some strings in that line (test page).
How should I write need quotes (double and single) with echo function?

Milan

Posted: Thu Jul 31, 2003 12:32 pm
by nielsene
Within double quotes use \" to show a double quote, likewise for '' within single quotes.