Whitespace

You can put multiple PHP statements on the same line of a program as long as they are separated with a semicolon. You can put as many blank lines between statements as you want. The PHP interpreter ignores them.

No whitespace (i.e. blank-looking characters such as space, tab, and newline) at all or lots of whitespaces between statements doesn't affect the program's execution. The PHP interpreter also ignores whitespace between language keywords and values.


Syntax | Basic Syntax | Text Strings | Here Document | Whitespace | Comments | Debugging Tips
© 2008: Hann So
email: hso@voyager.deanza.edu