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?

Answers were Sorted based on User's Feedback



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

Answer / rockesh ronith

print() is a function but echo is a output statement for
print something......Where echo accept a multiple parameter
and print does not support multiple parameter..............

Is This Answer Correct ?    0 Yes 0 No

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

Answer / karl marx

echo() na statement
print() na function

echo la single quote ulle double quote work aagum
print la work cheyadhu

Is This Answer Correct ?    3 Yes 4 No

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

Answer / d

I take that back.... learn something new every day

Is This Answer Correct ?    3 Yes 5 No

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

Answer / 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

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

Answer / slm_nam

print() takes multiple arguments and
echo is just take one argument.
print() is a function but echo is statement

Is This Answer Correct ?    3 Yes 6 No

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

Answer / dinesh

print mane function
echo mane statement
doee print karbe ke kaam aathen.

Is This Answer Correct ?    2 Yes 6 No

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

Answer / david

#13, you are wrong

#10 is right


I'm a PRINT user ;-) I'd know.

Is This Answer Correct ?    4 Yes 16 No

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

Answer / hyma

print And echo()both are same.print is a statement.echo is
a method.

Is This Answer Correct ?    10 Yes 43 No

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

Answer / ashish zarkar

echo is statement and print is function
echo evaluate the string before send the output just like this
$a=10
echo "Value is $a"
output:- Value is 10

print 'Value is $a'
output:- Value is $a

print does not evaluate the stirng but echo does and one
thing more echo is faster then print because echo does't
return any value just given the output

Is This Answer Correct ?    13 Yes 47 No

Post New Answer

More PHP Interview Questions

Which is the best method to fetch the data from mysql? 1.mysql_fetch_array() 2.mysql_fetch_object() 3.mysql_fetch_row() 4.mysql_fetch_assoc()

6 Answers  


Which library is used in php to do various types of image work?

0 Answers  


how to upload a file in php.write a syntex for that

1 Answers   Net Solution,


Difference between array_combine and array_merge?

0 Answers  


How do you destroy a session?

0 Answers  


Are objects passed by value or by reference?

0 Answers  


Whether session will work if we disable cookies in client browser ?

10 Answers  


How to download and install php on windows?

0 Answers  


How to enable error reporting in php?

0 Answers  


How check variable is set or not in php?

0 Answers  


How can we submit a form without a submit buttom?

12 Answers   A1 Technology, IBM,


Will a comparison of an integer 12 and a string "13" work in php?

0 Answers  


Categories