CSPP552: Internet Programming, PHP part 5
PHP Basics
- Files have an extension of .php
- Looks and acts just like HTML until you hit a <?,
then runs the PHP script until a ?>
- Very closely resembles C, except for variables, with have $ in
front of them, like Perl
- Most operators, conditionals, looping constructs, code grouping, etc
are just like in C. There is an elseif, though.
- Semicolon at the end of each statement
- Comments are with /* */ and //
- At least it doesn't try too hard to be object-oriented; it has
classes, but that's about it.
- If you know C, you know PHP
Next