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:
<?phpprint("I am learning PHP");
<?phpecho("I am learning PHP");
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.:
will generate error, whereas:
will gives the output as:
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:
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial