<?php enum TKind { case TK_PUNCT; case TK_NUM; case TK_EOF; } class A{ public TKind $kind; public function __constructor($kindArg){ $this->kind = $kindArg; } } $a = new A(Tkind::TK_PUNCT); var_dump($a);
You have javascript disabled. You will not be able to edit any code.