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

Is it necessary to use closing tag in php?sometime without
closing tag things work.why?

Answer Posted / prashant

This isn't exactly a bug. PHP doesn't require the closing
tag (it is assumed when the file ends). Not specifying the
closing ?> helps prevent accidents like additional
whitespace which will cause session initialization to fail
("headers already sent").

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is php string function?

944


How to execute an sql query? How to fetch its result?

1043


How to check your php installation?

941


What do you use php for?

948


Is php better than python?

907


What is die in php?

969


How do you use end in python?

938


What is the method to execute a php script from the command line?

983


What is the purpose of break and continue statement?

921


What is difference between web service and api?

967


How can we set and destroy the cookie in php?

912


What is http php?

894


What is explode() in php?

948


List types of array are available in php?

929


How to call php function from javascript using ajax?

934