Learn the basics of PHP with this quick and simple tutorial. Designed for the very beginners.
What is PHP?
It is an open source scripting language which can be used to develop the dynamic website easily. People are using PHP to develop small and big e-commerce applications.
History of PHP
Different features in PHP
Data types supported by PHP
Following data types are supported by PHP:
Example 1:
<?php
print("I am learning PHP");?>
Example 2:
<?php
echo("I am learning PHP");?>
Output:
Above written codes will display on the screen :
I am learning PHP
print and echo are almost similar besides that they have few differences
like:
Speed: echo is slightly faster than print
Parameters: echo allows more than one parameter whereas print does not, e.g.:
<?php
print "Hello","world";?>
will generate error, whereas:
<?php
echo "Hello","world",1,2,3;?>
will gives the output as:
Helloworld123
Expression: print works like a function and returns true value after successfully executed.
Note: For further queries on basis of PHP, please visit our website:
http://roseindia.net/tutorial/php/phpbasics/tutorial/index.html
or
http://roseindia.net/tutorial/php/phpbasics/index.html
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: PHP Getting Started With PHP Tutorial View All Comments
Post your Comment