Why is JavaScript a Client-Side and PHP is Server Side(I think! 😕 ).
Because php runs on the server, and javascript on the client (your) machine.