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 are the rules for naming a php variable?

991


What are the common uses of php?

1034


Explain converting an object?

960


Can the value of a constant change during the script's execution?

931


What is php dependency injection?

868


What are php errors?

905


What is alias in php?

986


Is salary fixed or variable cost?

942


Can I learn php without knowing c?

956


What does empty mean in php?

925


How to invoke a user function?

931


Which function is used in php to check the data type of any variable?

893


What is a php web application?

962


What is php? Why it is used?

1039


What is PHP's configuration file called?

1142