PHP Line Continuation Character?
Posted: Thu Jul 20, 2006 6:14 pm
Weirdan | Please use
See the underscore, it allows me to continue the code on the next line without generating an error.
Is there a PHP equivelent?
Weirdan | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I'm an ASP Programmer making the switch to PHP. In ASP/VBScript when you want to goto the next line in the middle of a code you use whats called a Line Continuation Character.
Example:
[syntax="asp"]
myString = "Hello my name is alex I am a super cool dude that likes cheese" & _
"I also like milk" & _
"I also like the number 8"
Is there a PHP equivelent?
Weirdan | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]