fork download
  1. <?php
  2. class Teste {
  3. const VARIAVEL = 10;
  4. const VARIAVELA = 20;
  5.  
  6. function __construct($parametro=self::VARIAVEL, $parametro2=self::VARIAVELA){
  7. echo "$parametro - $parametro2";
  8. }
  9. }
  10.  
  11. $t = new Teste();
Success #stdin #stdout 0.01s 24448KB
stdin
Standard input is empty
stdout
10 - 20