Junior PHP Developer Question:

Explain how can PHP and Javascript interact?

Tweet Share WhatsApp

Answer:

PHP and Javascript cannot directly interacts since PHP is a server side language and Javascript is a client side language. However we can exchange variables since PHP is able to generate Javascript code to be executed by the browser and it is possible to pass specific variables back to PHP via the URL.

Download Junior PHP Developer PDF Read All 161 Junior PHP Developer Questions
Previous QuestionNext Question
Tell me how to find current date and time?Explain me what is the meaning of a Persistent Cookie?