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

When is a conditional statement ended with endif?

950


What is the function used to change the root directory in PHP?

1007


Steps for the payment gateway processing?

993


Tell me how can we determine whether a variable is set?

910


What is factory pattern in php?

914


How can we determine whether a php variable is an instantiated object of a certain class?

937


What is difference between session and cookies in php?

949


What are the types of variables in php?

1046


Will php die?

939


How to take a substring from a given string in php?

895


Explain a resource?

987


Which will check if a function exists?

1070


What is the use of die in php?

971


Explain the importance of the function htmlentities.

973


How to call javascript function in php without any event?

939