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 / satyajit das

1> print()is am method which returns boolean parameter(s)
either 1 or 0. Where echo() is an object rather statement
which does not have any return parameter in spite of has
its functionality.

2> According to print is structured and faster in sence it
does not return any complex parameter but if the complex
parameter is concerned echo becomes slow. complex parameter
indicates any complex value like 1.3e^2.

3> print supports multiple arguements w.r.t. '.' like echo
e.g.

<?php

$p = "MY ISAM";

$j = 1;

print($p."&nbsp;".$j);

echo("<br>".$p.$j);

?>

Is This Answer Correct ?    20 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which function gives us the number of affected entries by a query?

886


Is multiple inheritance supported in php?

965


What is rest api in php?

911


Which is the best php framework for a beginner?

949


How do I stop a php script?

925


What is the function to count elements in an array in PHP?

1054


What is basename php?

926


Is nan in php?

992


Tell me what are the different types of errors in php?

940


How can you propagate a session id?

954


Where is the submitted form data stored?

1020


How to retrieve values out of an array?

983


Tools used for drawing er diagrams?

959


What is member variable?

923


What is a PHP Filter?

1026