שלום לכולם,
אני מנסה לקרוא לפונקצייה שנמצאת בתוך פונקצייה שנמצאת במחלקה.
לדוגמא:
PHP קוד:
class example{
function outside()
{
function inside()
{
//מספר פעולות
}
}
}
$example = new example;
$example->outside();
$example->inside();
השגיאה:
Fatal error: Call to undefined method example:: outside() in C:\wamp\www\NewGame\themes\ssd.Class.php on line
108
תודה רבה לעוזרים.