This gives me PHP Parse error: syntax error, unexpected ';', expecting '(' in C:\Program Files\Apache Group\Apache2\htdocs\toolmon\_debug_tmp.php on line 15 having a code
Code:class test { var $SOME_CONST = 10; } echo test::$SOME_CONST;Can't I create a constant variable inside a class?
Thanks.




Can't I create a constant variable inside a class?
Reply With Quote