keeping in mind that javascript is executed in one's browser and that PHP typically runs on the server, you would need to either echo some javascript in your page OR you would need to set up your existing javascript to run an AJAX request to some PHP script for either a value to use with your javascript or perhaps some javascript code to be executed.