Guest User

Untitled

a guest
Apr 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. class example1{
  2. public function getById(){
  3. //Access to db
  4. }
  5. }
  6.  
  7. class example2{
  8. public function getById(){
  9. $ex = (new example1())->getById();
  10. //changes ex and returns it.
  11. }
  12. }
Add Comment
Please, Sign In to add comment