+ 2
PHP is a server side language (in a web development context, although it can be used as a command line language also). That means that the PHP runs on the web server, and not in the user's web browser (the client). Javascript runs in the web browser (javascript is client side, not server side).
Is that what you needed to know?