[thelist] \r\n and single quotes in php

Dunstan Orchard dunstan at 1976design.com
Sat Mar 8 15:23:01 CST 2003


Is there any way I can retain the use of my single quotes, but still get \r\n
to work in php?

For example, in the code below the \r\n are rendered onto the page. If I
replace my ' with " then they work properly, but then I have to escape all the
other double quotes in the code (something I'm keen to avoid):

$footer_paging = '<div class="tone2" style="padding: 5px; border-top: 1px
solid #aaa; font-size: 80%;">\r\n' . $paging . '</div>\r\n\r\n';

any ideas?

thanks very much,

- dunstan (btw, I'm on digest, could you cc me please? thx)

---------------------------
Dorset, England
http://www.1976design.com/
http://www.orchard.it/
http://www.maccaws.org/



More information about the thelist mailing list