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

How can you create a session in php?

1064


How can I increase my website session?

1055


Which is better mysql or sql?

1005


What is an object in php?

1101


What is inheritance in php with example?

1014


Is php a middleware?

956


What is php destruct?

962


What is regex in html?

906


What are the php variables?

1014


What is the major php security hole? How to avoid?

985


What is the ioncube php loader?

1015


Can we use php variable in javascript?

1014


Can age be a variable?

926


What are the uses of php language?

973


What are getters and setters php?

1034