Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyClass
- {
- public $variable_one;
- public function function_one()
- {
- $variable = 'last';
- return $this->function_two->$variable;
- }
- public function function_two($params = array())
- {
- if (is_array($params))
- {
- $params = http_build_query($params, NULL, '&');
- }
- $this->option(CURLOPT_COOKIE, $params);
- return $this;
- }
- ....
- ....
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement