Is PHP replacing JavaScript? What do I need to do with JS?

A

Anonymous

Guest
PHP is a server-side language. It is executed only on the server before the page is sent to the user. JavaScript is a client-side language. It is executed only in the user's browser. PHP cannot do anything on the client side, JavaScript cannot do anything on the server side, and for that reason neither is going to replace the other.
 
Back
Top