Programming in PHP language

The most important commands from PHP programming language in one place, a unique comparison and each command-operator is shown using a piece of program. Statements-operators of these sample programs are clickable, so with a simple click we have more information available.

Programming language PHP:


Examples - PHP

PHP
$i=10;
do --$i; while ( $i > 0);
do {
  $i++;
  if ($i==5)
    break;
} while ( $i <10);
PHP
$x = 8 >> 1;        // x = 4
$y = 0xff >> 4;     // y = 15
$z = ($x >> 2) >> 2; // z = 0

Other pieces of example codes:
PHP
if ($i==5)
    break;
++$i;
$x > 3.14
(double)$x
$a = 4 >= 2
32 >> (0xA >> 2) >> 1
Languages: en hu cz sk