Re: What is difference between print and echo
Hi, Both are used to display an output in PHP, and the difference between is Format specification, i.e. Print follow like C Language Syntax for performing his operation, while we use echo direct, without any hard and fast formatting like that
<?php
echo "sandy";
?>
<?php
$s = "sandy";
print('%s', $s) ;
?>
|