Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // HOW CLASSES WORK
- class Test
- {
- public function testing()
- {
- return function() {
- var_dump($this);
- };
- }
- }
- $object = new Test;
- $function = $object->testing();
- $function();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement