Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class testClass{
- function testMethod(){
- echo microtime().PHP_EOL;
- return (object) new testClass();
- }
- }
- $aClass = new testClass();
- $ret = $aClass->testMethod();
- var_dump( $ret );
- $retTwo = $ret->testMethod();
- var_dump ( $retTwo );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement