how to use php code in javascript how to use php code in javascript function 32 How To Use Php Code In Javascript Basically you need to understand Javascript runs on the client side, and PHP runs or executes in the server side. If you wa… Written By Anonymous Monday, August 13, 2018 Add Comment Edit