Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('CONST_VALUE', 'value');
- // works fine
- class FirstClass
- {
- public static $field = CONST_VALUE;
- }
- FirstClass::$field;
- // parse error
- class SecondClass
- {
- public static $field = CONST_VALUE.' and value';
- }
- SecondClass::$field;
- ?>
Add Comment
Please, Sign In to add comment