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 / mahesh

echo is a statement where print_r,print are the functions
all prints the variable result..
If the variable is an Array, then Print_r will prints the
array in details (Array[0]-> " the array values")...
where as the other two(echo and print) only prints as ARRAY().

Is This Answer Correct ?    47 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you sort an array in php?

968


Is php secure?

977


Are there regular expressions in php?

945


Does cors prevent csrf?

948


What is the use of stripslashes in php?

985


What is php explain how php works?

978


Which cryptographic functions in php returns the longest hash value?

995


what does this symbol mean in php?

1149


Which Scripting Engine PHP uses?

1175


How do you destroy a session?

913


Is php a backend?

975


How to increase the execution time of a PHP script?

1053


Can I learn php without knowing c?

1006


Is laravel frontend or backend?

955


Can you define an array argument as a reference type?

922