I have one of my class method like this shown below :
public function something() {
$this->create_varible('test');
return $test;
}
I wanna create some variable(not class variable) by passing it’s name as argument to create variable method(as shown above), then return it’s value.
your help will be appreciated, thanks in advance.
Example:
Or:
Please keep in mind the scope of variables.