PHP Program To Display Text Messages

in php program if you want to display message and output you just need echo and print statement

echo statement

<?php
echo "hello world";
?>

output:

hello world

print statement

<?php
print "hello world";
?>

output:-

hello world

display variable value

<?php
$var="caroline";
echo "hello".$var;
?>

hello caroline

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post