Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class myClass {
- static $myVariable = 'THIS IS WORK!';
- static function myFunction() {
- return self::myVariable;
- }
- }
- echo myClass::myFunction();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement