PHP Details

PHP Snippets MySQL

References

Used symbols

⊗: left mouse button click, ⊗²: left mouse buttondouble click, ⊕: right mouse button click, ∇: input, ▼: select, >>: copy to

Technology

PHP have to be installed on server.

  • Find a web host with PHP and MySQL support
  • On PC install a web server, then PHP, and MySQL

Statements end width semicolon (;).

Comments:
// …, for single line
/* …
… for multiline */

Variables

Variable name is case-sensitive, starts with a letter or the underscore (_), followed by alphanumeric characters and underscores.

  • GLOBAL SCOPE: declaration/access are outside functions ($GLOBALS[index])
  • LOCAL SCOPE: declaration/access are within functions ; (global static)

Display variables with: echo or print.

Elements

Most used elements

Elements by categories (links to the w3.org)

Books contents


PHP Snippets MySQL