Writing PHP


The following is a small bit of information regarding writing PHP code..

• Whitespace (tabs, spaces, returns) doesn't really matter. You can write <?$title="mytitle";?> or <? $title = "mytitle" ; ?>, both work.
• Each statement ends with a semi-colon ";".
• When inside PHP tags, you can add comments:
o /* comment */
o # comment
o // comment
(everything until the end of the line will be ignored in the two last cases; in the first case, the comment can span multiple lines).
• You can gofrom PHP to HTML and back just about any place. Make your experiences!
• PHP files are usually named "anything.php" (on some servers you can use "something.php3" or even "something.phtml").





Copyright © 1999-2003. Maxis Media Studios, LLC All Rights Reserved.
Montreal Web Design - Maxis Media