Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- interface a
- {
- const b = 'Interfcae constant';
- }
- // Prints: Interface constant
- echo a::b;
- /**
- This will however not work because it's not allowed to override constant
- */
- class b implements a
- {
- const b = 'Class constant';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment