Computer Science, asked by jyothsna, 1 year ago

what is the different between echo() and print()?

Answers

Answered by lfstone3
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"
<?

 
Answered by npratap564pratap
0
the print return type is one
and echo return type is void means no return type
Similar questions