fork download
  1. <?php
  2.  
  3. class Testando
  4. {
  5. public function teste()
  6. {
  7. echo "teste!\n";
  8. }
  9. }
  10.  
  11. $testando = new Testando;
  12.  
  13.  
  14. echo $testando-> teste();
  15.  
  16. $var = $testando-> teste();
  17. var_dump( $var );
  18.  
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
teste!
teste!
NULL