Welcome Guest, Not a member yet? Register   Sign In
i am good in php and bad in classes ( simple question )
#1

[eluser]Mr.CodeIgniter[/eluser]
if i have this class :
Code:
class test{
   function hellow(){
      echo"hellow world";
   }
}
$name = new test();
$name->hellow->test2();
i know function test2 not exist , but if i want create it and call it like example
at end line , where i can create it.
i hope to undersand me .


Messages In This Thread
i am good in php and bad in classes ( simple question ) - by El Forum - 08-25-2010, 03:23 PM
i am good in php and bad in classes ( simple question ) - by El Forum - 08-25-2010, 03:26 PM
i am good in php and bad in classes ( simple question ) - by El Forum - 08-25-2010, 03:46 PM
i am good in php and bad in classes ( simple question ) - by El Forum - 08-25-2010, 03:53 PM
i am good in php and bad in classes ( simple question ) - by El Forum - 08-25-2010, 06:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB