Hello,
I wan to use a class variable out side a class and inside in different functions but try it but didn't work, here's an example:
class Operation {
var $Variable;
function One() {
$this->Variable = do stuff......
}
function Two() {
$other_value = do more stuff $this->Variable
}
}
$op = new Operation();
$op->One()
... do stuff with $op->Variable;
$op->Two()
... do another stuff with $op->Variable;
Thank you in advance