fork(17) download
  1. <?php
  2.  
  3. class Exemplo {
  4. public $publico = 'Public';
  5. public function metodoPublico() { }
  6. }
  7.  
  8. $obj = new Exemplo();
  9. $obj->publico = 'Teste';
  10. $obj->metodoPublico();
Success #stdin #stdout 0s 82880KB
stdin
Standard input is empty
stdout
Standard output is empty