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

For printing out strings, there are echo, print and printf.
Explain the differences.

Answer Posted / coder

echo is a language construct(You can see we don't use
paranthesis for echo).echo does not return any value. print
is also a language construct but it returns an integer
value. printf is a function..... echo is considered fast
than print

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is == and === in php?

909


How to create a session? How to set a value in session?

986


Is php a mvc?

944


How can I use single quotes in single quotes in php?

880


What is the difference between $argv and $argc? Give example?

989


Explain about the $_GET variable of PHP?

1021


Explain about require and include function?

1003


How is a constant defined in a PHP script?

1035


What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?

960


Explain how can we increase the execution time of a php script?

1005


How to convert a string to uppercase in php?

1058


Which function would you use to read a line of data from a file in php?

1027


What is the best way to test the strpos() return value in php?

983


How come the code works, but does not for two-dimensional array of mine?

994


How can cross site request forgery csrf be prevented?

937