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