PHP is often referred to as a scripting language because it needs a server to run code. Its code is processed on the server side, and the result is returned to the browser. As such, PHP is classed as both a scripting and server-side language.