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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the $_GET variable of PHP?

1015


What is the difference between array_map () and array_shift ()?

1024


What are php keywords?

927


Does exist in php?

976


What is the advantage of runtime polymorphism?

940


How to convert numbers to strings in php?

1016


What is the use of 'print' in php?

1015


What is the purpose of constant() function?

1142


What is $_ get?

962


How check variable is set or not in php?

879


What is use of echo in php?

931


What is Apache's configuration file typically called?

1126


Explain soundex() and metaphone().

1023


Does php 7 support mysql?

1005


What is the use of explode() function?

1062