Postfix and Prefix Operators in Action : Postfix Prefix Operators : Language Basics PHP Source Code


PHP Source Code » Language Basics » Postfix Prefix Operators »

 

Postfix and Prefix Operators in Action



<html>
<head>
   <title>Postfix and Prefix Operators</title>
</head>
<body>
     <?php
          $a = 5;
          print("$a = " . $a++ . "<br />");
          print("$a = " . ++$a . "<br />");
          print("$a = " . $a . "<br />");
          print("$a = " . $a. "<br />");
     ?>
</body>
</html>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Postfix Prefix Operators