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

What is php how it works?

0 Answers  


Which function gives us the number of affected entries by a query?

0 Answers  


Write a program in php to check whether a number is prime or not?

0 Answers  


How to assigning a new character in a string?

0 Answers  


What is the function file_get_contents() usefull for?

0 Answers  


What is strstr php?

0 Answers  


What is the string concatenation operator in php?

0 Answers  


Are php short tags acceptable to use?

0 Answers  


what use of <?php

1 Answers   CBS,


What is PHP?

8 Answers  


What is difference between session_unset and session_destroy?

0 Answers  


Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

0 Answers  


Categories