PHP Full Form is Hypertext Preprocessor. Initially, the abbreviation was the Personal Home Page. Rasmus Lerdorf created PHP in the year 1994.
PHP is an open-source server-side scripting language. We can use PHP for creating websites like static, dynamic, or web applications. We can embed the PHP code within HTML or use it with any other web frameworks. The PHP script is executed on the server and interpreted by PHP interpreter. The server returns only the result back to the client/browser.
- The main purpose of using PHP is for creating dynamic web pages.
- It is free to use since it is open-source.
- Supports any operating systems that have a web server supporting PHP.
- We can use for database operation
PHP tag starts with <? followed by the word PHP and then remaining action. It ends with ?>. If code contains more than 1 statement, each statement terminates with a semicolon. It is a best practice to end the statement with semicolon always even for a single line of code.
Example of PHP
The below example shows PHP code embedded within HTML
<!DOCTYPE html> <html> <body> <? php echo "Welcome to PHP tutorial"; ?> </body> </html>
Output: Welcome to PHP tutorial
- PHP file ends with .php extension
- Can contain HTML code or used as a pure PHP file
- It is case sensitive
- Supports various databases like MySQL, Oracle, Postgres, ODBC, etc.
- PHP 7 is the latest release which is available
This article was about the PHP Full Form. In next articles, we will cover more features of PHP.