|
JackS jack42779@yahoo.com - 29 Aug 2008
I think if you check the \n works in javascript, <br /> works in html. If the PHP was embeded in a javascript code command it probably would work. But with PHP you do not need the javascript.
Regards,
jack {;-)
sudhashen@gmail.com - 29 Aug 2008
Great work.Thanks for making this resource available.Please could you give a newbie explanation as to why <br> has to be added to view line breaks in a browser? Why is this not mentioned your notes for the above? My assumption is that \n should show a new line as indicated when testing - however this only shows when showing the source in the browser.
sudhashen@gmail.com - 29 Aug 2008
Great work.Thanks for making this resource available.Please could you give a newbie explanation as to why <br> has to be added to view line breaks in a browser? Why is this not mentioned your notes for the above? My assumption is that \n should show a new line as indicated when testing - however this only shows when showing the source in the browser.
sudhashen@gmail.com - 29 Aug 2008
Great work.Thanks for making this resource available.Please could you give a newbie explanation as to why <br> has to be added to view line breaks in a browser? Why is this not mentioned your notes for the above? My assumption is that \n should show a new line as indicated when testing - however this only shows when showing the source in the browser.
Safiya Dogara Bashir/sdbashir2001@yahoo.com - 29 Aug 2008
Great. That explains the problem I had a while back when I was trying to output escape sequences within single quotes. This book is definitely getting bookmarked! :)
Meelen - 29 Aug 2008
\n is not worling but for me <BR /> is.
What are the other signs?
zhang2000 - 29 Aug 2008
About "...escape sequences only work in double-quoted strings", I test the following on my local site(Apache2.0 + PHP 5.1.1+Win2000), which makes me a little confusing, I mean, sometimes, it works.
$MySingleString = 'This \'will\' work';
print $MySingleString;
The output in the browser like this:
This 'will' work
Tom - 29 Aug 2008
> Windows paths can be expressed with forwards slashes in most cases, the main exception is when building a command-line for some external program call where backslashes are uusually needed.
When offline, they should be using backslashes. It's only when using the file:// protocol that they're forward.
A PHP User - 29 Aug 2008
what happens if we type for variable
$whatHappens= "c:///";
Jasen Betts - 29 Aug 2008
Windows paths can be expressed with forwards slashes in most cases, the main exception is when building a command-line for some external program call where backslashes are uusually needed.
A PHP Newbie - 29 Aug 2008
Great. That explains the problem I had a while back when I was trying to output escape sequences within single quotes. This book is definitely getting bookmarked! :)
hullk - 29 Aug 2008
awesome book I love it
Add comment
Please note that by posting a comment here you are committing it to the public domain. This is important so that others can make use of your code themselves, and also so that I can incorporate helpful notes directly into the main text. Comments are limited to 2000 characters in length.
If you are reporting an error in the content, please tell me directly.
|