Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

PHP Function without arguments in PHP

  1. <?php
  2. function code() {
  3. echo "Hello World ! ! !";
  4. static $a=1;
  5. $a++;
  6. echo "<br>" + $a + "<br>";
  7. }
  8. code();
  9. code();
  10. ?>

Output :


  1. Hello World ! ! !
  2. 2
  3. Hello World ! ! !
  4. 3