Passing PHP Variables to JavaScript

This example declares variables in PHP and outputs them in JavaScript.

To see the PHP, open this file in an editor. To see the resulting JavaScript, view the source code of this page using browser menu commands.

Back to Index