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

Explain me what is the w3c?

0 Answers  


Is php dying 2018?

0 Answers  


write a program to print [123] [456] [789] note : braces also need to be printed

1 Answers   Net Solution,


What is list function with their uses.

0 Answers  


how to insert logout time when browser close

1 Answers   Global Softtech,


What is baseurl?

0 Answers  


Why would we use === instead of ==?

0 Answers  


Tell me what library is used for pdf in php?

0 Answers  


How can we submit a form without a submit button?

2 Answers   Rushmore Consultancy,


How to replace a substring in a given string in php?

0 Answers  


Does php support inheritance?

0 Answers  


Who is known as the father of php?

0 Answers  


Categories