Skip to main content

Posts

Showing posts from February, 2017

how print multiple methods function in oops php

how print multiple methods function in oops php  $a=new HTMLImage(); $newObject=new WebsiteLogo($a); echo $newObject->getSource()->FunctionName()->getName(); ______________________________________________________ class test  {      function __construct( )    {      # code...    }    public function getName()    {       echo "hello dear! my name is saddam hussain saifi";    }  } /** * */ class redme {     function __construct( )   {     # code...   }   public function FunctionName()   {     # code...     return new  test;   } } class HTMLImage {   function __construct()   {       }   public function getSource()   {     return new redme();   }   } class WebsiteLogo {   private $img;  ...