I am not sure if this belongs here or in php

I have an array of graphics, set in javascript.

I want to modify the array, based on variables I set in php.

Can I know the values of the php variables in the javascript?