PHP stands for "Hypertext Preprocessor", is a programming language embedded in HTML that does all sort of things like build custom web content, send and receive cookies, evaluate form data sent from a browser, etc. It is integrated with number of popular databases like Postgre SQL, Oracle, Sybase, SQL, and MySQL. PHP also supports major protocols like IMAP, POP3 and LDAP.
PHP can handle forms, save data to a file, return data to the user, gather data from files, etc.
Example: Let say a website that takes user to view the order status after logging in. By PHP coding, you would send a query to the database that would then output the specific user information based on what information is in the database
PHP vs Java-Script
|Developed by||Brendan Eich (1995)||Rasmus Lerdorf (1994)|
|Easy to use existing code||Yes||Yes|
|Server side scripting language||No||Yes|
|Client side scripting language||Yes||No|
|Accepts both upper case and lower case boolean variable||No||Yes|
|Case sensitive to variables||Yes||Yes|
|Case sensitive in function||Yes||No|
|Objects & Arrays interchangeable||Yes||No|
|Requires HTTP to execute||Yes||Yes|
|Updates files on server||No||Yes|
|Execute with browser window||Yes||No|
|Memory Management (garbage collection)||Yes||Yes|
|Support of features||Less||More|
Job trends from indeed.com shows millions of jobs search for Java-script and PHP from thousands of job sites. It relatively shows the growing and falling trend of the job for both languages in consecutive years.