Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Understanding echo and print in PHP

Share this post!
 Vote this!

Here is one quick article about Basic PHP and its about to differentiate echo and print.The two most basic construct to display output are echo and print.It can confuse user because its a basic construct of PHP language and also a functions in PHP. We can used both print and echo either with parentheses or without parentheses.

NOTE: To call function, we always have to use the name of the function first followed by a parenthesized list of the arguments to the function.



ECHO:
The simplest usage of echo is to display a string as argument.
Example
echo "This will display with the use of PHP.";



0 comments:

Post a Comment