Advertisement
Guest User

asdasda

a guest
Jul 11th, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1.     class MyClass
  2.     {
  3.         public $variable_one;
  4.    
  5.         public function function_one()
  6.         {
  7.             $variable = 'last';
  8.             return $this->function_two->$variable;
  9.         }
  10.    
  11.         public function function_two($params = array())
  12.         {
  13.             if (is_array($params))
  14.             {
  15.                 $params = http_build_query($params, NULL, '&');
  16.             }
  17.    
  18.             $this->option(CURLOPT_COOKIE, $params);
  19.             return $this;
  20.         }
  21.    
  22.         ....
  23.         ....
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement