PHP Syntax
0 4662
PHP is a common purpose Server Side Scripting Language that was specially designed for web development to generate dynamic web pages. To learn PHP, it is most essential to know about PHP syntax which helps to build a web page.
PHP syntax is easy and clean. If you are already aware of the programming language, you will get the PHP uncomplicated to pick up.
PHP Syntax = Start with <?php and close with ?>
On the other hand, if you have no experience in programming, you will find PHP a great experience as your first step in the programming field.
Its simple nature blended with its powerful effect online is enough to leave you amazed.
Normally, PHP syntax starts with <?php and close with ?> and the other essential PHP code will be written between the starting and closing tags.
These PHP code containing files will be saved with PHP extension that is .php.
The PHP syntax is similar to some other language syntax like C, C++, etc.
PHP Basic Example:
<?php echo "Good Morning India"; ?>
Result: Good Morning India
You can see the above example in which the program starts with <?php and close with ?> and the inner code written between the starting and closing tag.
In this way, a beginner can start his practice and make small PHP programs that help to enhance the knowledge and experience in PHP development.
Share:
Comments
Waiting for your comments