Sending variables between 2 functions

#1
[eluser]luukskywalker[/eluser]
i have a small question

i have 2 functions -> Function_A() and Function B()
and i want to send a variable from function a to function b.
I want something like this(this is just an example):
Code:
Function_a(){
  
  $foo = "1";
  $this->_function_b($foo);
}

Function_b(){
   if($foo){
      
     echo $foo+1;

   }else{

     $foo = "10";
     echo $foo;
   }
}

is this possible?


Messages In This Thread
Sending variables between 2 functions - by El Forum - 04-03-2008, 02:53 AM
Sending variables between 2 functions - by El Forum - 04-03-2008, 03:18 AM
Sending variables between 2 functions - by El Forum - 04-03-2008, 03:58 AM
Sending variables between 2 functions - by El Forum - 04-03-2008, 04:08 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.