For any character which is reserved in PHP, you can use a backslash (\) to escape it.
So when we have to include a quote within a string, use backslash just before it.
[php]echo "<a href=\"javascri pt:ajaxpage('te st.htm', 'contentarea'); \">test</a>";[/php]
May be you get confused due to single quotes. But there no need to escape single quotes when being included in double quoted. (and vice versa)
Comment