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 type of headers that PHP supports?

1062


Which operator is used to combine string values in php?

987


How to remove leading and trailing spaces from user input values in php?

1062


How do you remove duplicates from an array?

1098


When do sessions end?

1003


Please explain is it possible to use com component in php?

1044


Explain me what is the difference between explode() and split() functions?

1156


Explain me is it possible to destroy a cookie?

994


Is laravel easy to learn?

1020


How does api connect to database?

1120


How to run the interactive php shell from the command line interface?

1161


What are the ways to include file in php?

1045


What are the Advantages and Application Areas of PHP?

977


How to check a key exist in an array?

1137


What is a class in php programing?

2620