היי, מדובר בשפה PHP
איך אני מצליח לקרוא משתנים מפונקציה 1 בפונקציה 2?
PHP קוד:
class form {
public $counterror;
function setvar() {
$this->counterror ="hello";
}
function errorno() {
return $this->counterror; // do not display hello ?
}
}
תודה לעוזרים!