PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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"
See the underscore, it allows me to continue the code on the next line without generating an error.
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]
You can also do heredoc syntax. I use it sometimes for large blocks of HTML, since you don't have to escape double or single quotes. Some editors (like Crimson) will choke on it, and mistake it for lines of code.