What the client-side programming language does (if we are talking about web development) is that it runs in a web browser.
JavaScript is both a client and server language because it can be used to develop a client application in your browser (or even mobile applications using environments such as Apache Cordova), as well as a backend technology due to runtimes like NodeJS, which is fully executed on the server machine.
PHP is a server language (1) and the fact that PHP scripts can act as clients of other server environments or technologies does not mean that it is a client-side language.
The term "client side" refers to another physical layer from the server, which usually has a graphical user interface.
(1) In fact, it is true that PHP can be used to develop other types of applications, such as desktop applications, BTW, its main use is server-side web development.
source share