PHP, an acronym for Hypertext Preprocessor, is a widely-used open source general-purpose scripting language. It is a cross-platform, HTML-embedded server-side scripting language and is especially suited for web development.
The basic syntax of PHP is similar to C, Java, and Perl, and is easy to learn. PHP is used for creating interactive and dynamic web pages quickly, but you can do much more with PHP.
A simple example
<html> <head> <title>First PHP example</title> </head> <body> <?php echo "This is a simple PHP script!"; ?> </body> </html>
In the above example we have written a HTML script with some embedded code to display some text. The PHP code is enclosed in special start (<?php) and end (?>) tags that allows to go in and out of PHP mode. The extension of a php file is ".php".
Benefits of PHP
Features of the w3resource PHP tutorials
In this series of tutorials, we have covered PHP 5 in detail. While creating this, we have to take care that learners can master the basics of PHP and can be prepared to develop web based applications.
Here is a list of features we have included in all of the chapters :
1. We have started with a clear and simple description.
2. We have given a Syntax / Usage so that you can remember how to write it.
3. Example(s) to show how the associated concept is implemented.
4. We have shown the Output of the usage.
5. View the example in a browser.
6. Pictorial presentation to help you to understand the concept better.
Solve these problems: