Hi,
Im trying to get the $sql variable value from hello() in a()
function hello() {
$sql = 'select * from table';
}
class ABC {
function a() {
// How can I access hello()'s $sql?
}
}
Is there a way to do that? By referencing the variable or something like that?
Thanks, Andres