Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to continue long string into next line?

Status
Not open for further replies.

bobetko

Programmer
Jan 14, 2003
155
US
I believe this is easy question for an PHP programmer!

I am converting some applications from ASP to PHP and I am wondering how to achieve something like this in PHP:

Response.write "How to " & _
"brake long string " & _
"into several lines?"

Response.write in ASP is equal to print/echo in PHP.

In ASP "& _" means that string will be continued in the next line.
How can I do this using print/echo?

Thanks.
 
I don't have any problem with:

Code:
$string = "some long ass " .
   "string that I need to " .
   "break across lines.";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top