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

1.What are the difference between echo , print , print_r ?
else this 3 can we show output to a client in some other
way?

Answer Posted / dheeraj

echo is not a function, but a statement which outputs one or
more strings, it cannot display the array contents where as
the print() and print_r() are functions. print() can even
display the array contents as an array . print_r() Prints
human-readable information about a
variable

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array filter php?

970


Is php easier than javascript?

1032


What are the steps involved to run php?

1117


What is return in php function?

1053


Is apache needed for php?

958


What is php in simple words?

1063


How to make a class in php?

1021


What is the php function that removes the first element of the array and returns it?

1015


Why do we use query?

996


How can we destroy the cookie in php?

1043


Why use php artisan serve?

1019


How do you destroy a session?

965


Why php 7 is faster?

1012


What is the use of the function htmlentities?

1154


How do you destroy a particular or all Sessions?

1060