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 types of Data Can Be Used as Array Keys?

1023


Can we set session value in javascript?

1056


How to select a database?

1022


How to open a file in php?

1077


Write down the code for saving an uploaded file in PHP.

1072


What is session_start () in php?

990


Is php easier than node?

937


What is preg_match?

954


Should I learn php before wordpress?

977


How to include variables in double-quoted strings?

974


What is the value for this auto incremented field user_pri_id?

932


How to concatenate two strings in php?

1087


How do I find environment variables?

1006


How do you use an array in excel?

1100


Which is correct about mysqli and pdo?

1088