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?

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / ankur

some times session are not expired or logout then we find
that type of situation.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More PHP Interview Questions

Tell me how do you define a constant?

0 Answers  


where do we use htaccess?

0 Answers  


i'm b.com graduate and doing MCM- 1year(Master in Computer Management. i'm very interested in PHP? Please tell me some suggetion and the scope of PHP in the market. My E-mail pawan.register@gmail.com Thanks & Regards Pawan.

1 Answers  


What is a php form?

0 Answers  


What is form action php?

0 Answers  


How do you pass a variable by value in php?

0 Answers  


How can we create a database using PHP and mysql?

3 Answers  


What is the use of inner join in mysql?

0 Answers  


Explain the difference between $message and $$message?

0 Answers  


How I use global variable in another page without using $_GET method?

9 Answers  


What exactly is validating and sanitizing?

0 Answers  


What is xss in php?

0 Answers  


Categories