class MainClass {
public static function myStaticMethod(){
return myFunction();
function myFunction(){
echo 'hello';
}
}
}
The above code when executed returns call to undefined function myFunction();
Please, any ideas on how to call the function within the method?
Thank you