PHP Details

PHP Snippets MySQL


Used symbols

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


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 (;).

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


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.


Most used elements

Elements by categories (links to the

Books contents

PHP Snippets MySQL