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

What is meant by MIME?

1105


What is super () python?

1081


What is overloading in php?

1043


How can you pass a variable by reference?

1054


What is helper function?

985


What is split function in php?

1024


What is pdo in php why use?

989


What are the methods of array in java?

999


Tell me what is the use of "ksort" in php?

1039


What is the $_ server php_self variable?

1069


What the use of var_dump()?

1097


What is polymorphism?

2558


Does empty check for null?

1019


List some string function name in php?

1029


Write a program in php to find the occurrence of a word in a string?

1129