How can you use php in a javascript function
You can’t run PHP code with Javascript. When the user recieves the page, the server will have evaluated and run all PHP code, and taken it out. So for example, this will work: Because server will have evaluated it to this: However, you can’t perform any operations in PHP with it. This: Will simply have … Read more