Welcome Guest, Not a member yet? Register   Sign In
passing a variable back to a function
#5

[eluser]Twisted1919[/eluser]
Code:
class Blah extends CI_Controller(){
  
   public $pass_me_around;

   public function test1(){
      $this->pass_me_around = 'Wow, i can be globally used in this class after i am set, how cool is $this ?';
   }

   public function test2(){
       return $this->pass_me_around ;
   }


}


Messages In This Thread
passing a variable back to a function - by El Forum - 12-21-2010, 12:47 PM
passing a variable back to a function - by El Forum - 12-21-2010, 01:40 PM
passing a variable back to a function - by El Forum - 12-22-2010, 01:26 PM
passing a variable back to a function - by El Forum - 12-22-2010, 03:53 PM
passing a variable back to a function - by El Forum - 12-22-2010, 03:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB