PHP is a server-side language suited towards web development. The acronym is recursive, standing for PHP: Hypertext Preprocessor.
Considerably more versatile than CGI scripting, PHP is often used to add interactivity to plain HTML and bolster web frameworks.
The language can be employed on any operating system. PHP is supported by most common web servers and is often handled through an interpreter module. This combines static web code with dynamic inclusions.
PHP isn't just a web server framework. It's also useful for command-line scripting (headless parsing) and developing GUIs.
You should learn PHP because:
- it's an Open Source language
- it's well-documented and supported
- it's compatible with most common web servers
- it's easy to pick up and start learning
- it's highly scalable and extensible
Help us explain this better! File a GitHub issue at https://github.com/exercism/xphp/issues if you have suggestions, or submit a patch with improvements to the https://github.com/exercism/xphp/blob/master/docs/ABOUT.md file.
If you've downloaded the command-line client and have PHP installed on your machine, then go ahead and fetch the first problem.
exercism fetch php
In order to be able to submit your solution, you'll need to configure the client with your Exercism API key.
exercism configure --key=YOUR_EXERCISM_KEY
When you've written a solution, submit it to the site. You'll have to configure the command-line client with your exercism API key before you can submit.
exercism submit PATH_TO_FILE