fork download
  1. <?php
  2.  
  3. namespace padrao;
  4.  
  5. function helloWord(){
  6. echo 'hello'. PHP_EOL;
  7. }
  8.  
  9. namespace personalizado;
  10. function helloWord($msg){
  11. echo $msg .PHP_EOL;
  12. }
  13.  
  14.  
  15. \padrao\helloWord();
  16. \personalizado\helloWord('Bom dia');
Success #stdin #stdout 0.02s 24400KB
stdin
Standard input is empty
stdout
hello
Bom dia