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

What is difference between print_r and echo in php?

933


How to calculate the length of a string?

1181


Write an example to remove html tags from a string in php?

971


Where sessions stored in PHP?

1049


Why and where do we use htaccess?

1085


Can we use php variable in javascript?

1062


Is it easy to learn php?

1021


What good is polymorphism?

991


What are the design patterns in php?

1042


What is null value in php?

1093


Is php coding easy?

993


What do you mean by core php?

999


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

1045


Explain what does the unset() function means?

1247


How can we set and destroy the cookie in php?

1026