faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

53 of 99 people (54%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

Line breaks in a PHP script

Nov 28th, 2008 11:16
healthy man, Philip Olson, hidden brains, Dave, Walt Disney,


You can indicate a line break in PHP with \n as the \n will be 
replaced by a new line in the source code of the executed 
script.
If you're concerned with why this "isn't showing up in HTML" then 
read these faqts:
  how do I insert a new line using "echo"?
  --------------------------------------------------------------
  http://www.faqts.com/knowledge_base/view.phtml/aid/901
  Why does the echo command not give a line break in the browser
  output for \n?
  --------------------------------------------------------------
  http://www.faqts.com/knowledge_base/view.phtml/aid/1046/fid/2
http://www.healthdothealth.com
http://www.healthxhealth.com
http://www.mesotheliomainmesothelioma.com
http://www.healthfirewall.com
http://www.flathealth.com
http://www.healthbodyguard.com