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
Social Sciences,
8 months ago
Science,
8 months ago
Hindi,
1 year ago
Math,
1 year ago
Environmental Sciences,
1 year ago