PHP

Cards (8)

  • PHP stands for Hypertext Preprocessor, it is a server-side scripting language that is used to create dynamic web pages.
  • The PHP syntax is most similar to Perl and C.
  • The semicolon (;) is used to terminate PHP statements.
  • PHP
    • widely-used server-side scripting language • requires a webserver
  • A PHP script starts with <?php and ends with ?>
  • In PHP, keywords (e.g. if, else, while, echo, etc.), classes, functions, and user-defined functions are not case-sensitive.
  • Single line comments starts with //
    Multi-line comments start with /* and end with */
  • In PHP, a variable starts with the $ sign, followed by the name of the variable