What is PHP ?
PHP stands for Hypertext Preprocessor and is a server-side language. PHP allows web developers to create dynamic content that interacts with databases. PHP is relatively new (compared to languages such as Perl (CGI) and Java) but is quickly becomming one of the most popular scripting languages on the internet.
PHP is basically used for developing web based software applications.
Writing PHP code on your computer is very easy.
Declaring PHP Code
PHP scripts are always enclosed in between two PHP tags. This tells your server to parse the information between them as PHP. The three different forms are as follows:
1 2 3 4 5 |
<?php Write Your PHP Code Here. ?> |
You can practice PHP online learning at:
1 2 3 4 5 6 7 8 |
<!DOCTYPE html> <html> <body> <?php echo "My first PHP script!"; ?> </body> </html> |