what is the different between echo() and print()?
Answers
Answered by
1
echo() = can output more than one strings
print() = can only output one string.
example for echo:
<?php
echo "hello,world";
<?
example for print:
<?php
print "<h2>hello,world</h2>";
print " Lfstone helped me!<br>
print " I'm Jyothsna"
<?
print() = can only output one string.
example for echo:
<?php
echo "hello,world";
<?
example for print:
<?php
print "<h2>hello,world</h2>";
print " Lfstone helped me!<br>
print " I'm Jyothsna"
<?
Answered by
0
the print return type is one
and echo return type is void means no return type
and echo return type is void means no return type
Similar questions