PHP is server side web scripting language. So it is mainly work on server such as collect form data, generate dynamic page content, or send and receive cookies.
In summarize we can say that PHP can do the following things:
- Creating dynamic web pages
- Collecting form data
- Send or receive cookie
- Insert/update records of database
- Prevent unauthorized access
- Decode the data(i.e. encrypt)
If we talking the about the filed/area of php working, then php also used in below category: