Saturday, 26 July 2014

Filled Under:

Echo/Print function

Print /echo function:

                                    In php we use print or echo function for display the output of one or more stirngs. Print function always return value 1 whenever echo does not return any value .so that’s why echo is faster than print . so echo is more use function in php for displaying out put .we can use print function with () or without ()

Example:

<?php
echo “hello php”;
echo “<br/>”;
print “hello php”;
$val=10;
echo “the value is= $val” ;
print “<br/>”;
print  ”the value is =$val”;
?>

Output:

           hello php
           hello php
           the value is=10
           the value is=10

Video

                                                         see video tutorial 2







0 comments:

Post a Comment