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...


Difference among echo, print and printf.



Difference among echo, print and printf...

Answer / amit kumar gaur

echo is the primitive of them and just output the content,
you can pass the multiple parameter.
<? php echo 'Welcome','to','india';?>

print is a construct(parentheses are optional)but it return
true and false,print does not the miultiple parameters.

printf is a function not a construct and allow advantage
formatted output.

echo is faster than others.

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More PHP Interview Questions

What is php and how do you use it?

0 Answers  


What is the default session out time?

0 Answers  


How to check a key exist in an array?

0 Answers  


Swap two variables value without using third variable in php ?

0 Answers   MCN Solutions,


Use of Session

6 Answers  


What is indexing how many types?

3 Answers   DLF, Infosys, Net Solution, Vcare,


What is strlen function in php?

0 Answers  


Can you give example for trait in php?

0 Answers  


What is http get and post?

0 Answers  


Why do we use sessions in php?

0 Answers  


Xplain is it possible to use com component in php?

0 Answers  


What is the output of the ucwords function in this example?

0 Answers  


Categories