PHP is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. PHP is a general-purpose scripting language that is especially suited to server-side web development, in which case PHP generally runs on a web server.