Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the Diff. Between echo() and Print() in PHP?

Answer Posted / surendra.kandimalla

Echo:echo as a function we can pass only one argument.But echo as command we can pass any number of arguments.echo will not return anything.
echo("echo as function<br>");
echo"arg1","arg2","arg3","<br>";

Print:we can pass only one argument for print as function or command.print returns boolean value.
print("print function<br>");
$b=print"print command<br>";
echo $b,"<br>";

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of mvc in php?

991


How to create and destroy cookies in php?

908


What is the use of post in php?

983


Are php short tags acceptable to use?

948


What is form submission?

992


How to copy a file?

1072


Is php fully object oriented?

929


What is mean tnq

1541


What is php and its features?

1059


What is x+ mode in fopen() used for?

1047


What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?

937


How I can control asset documents without GR/IR?

1630


Tell us what does $_cookie means?

996


What is PHP? Who is the father or inventor of PHP?

1038


What is the default session time in php?

1015