Create three Simple statements in PHP

Description

The following code shows how to create three Simple statements.

Example


<?php/*from ww w .j  a v  a 2  s  .  c  om*/
  //an expression statement
  2 + 3;

  //another expression statement
  print("PHP!");

  //a control statement
  if(3 > 2)
  {
    //an assignment statement
    $a = 3;
  }
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Language Basic »




PHP Introduction
PHP Operators
PHP Statements
Variable
PHP Function Create
Exception
PHP Class Definition