PHPRestored your last edit ·
Result
PHP runs on a web server
Browsers can't run PHP. To try this code: install XAMPP, save it as a file in htdocs (use Download above), then open it at http://localhost/yourfile.php.
Output
Classroom: Form 2B School inside function: not visible School outside function: Maseno School
