PHP-ECHO
How to Print value in PHP By using Echo and Print command: -
echo Method: -
<?php
echo "Welcome to PHP Program"."<br>";
echo "<br>";
echo "am from echo method";
?>
Output: -
Welcome to PHP Program
am from echo method
Print Method: -
<?php
print "Hello am from print method";
?>
Output: -
Hello am from print method
echo Method: -
<?php
echo "Welcome to PHP Program"."<br>";
echo "<br>";
echo "am from echo method";
?>
Output: -
Welcome to PHP Program
am from echo method
Print Method: -
<?php
print "Hello am from print method";
?>
Output: -
Hello am from print method
Comments
Post a Comment