Is it necessary to use closing tag in php?sometime without
closing tag things work.why?
Answers were Sorted based on User's Feedback
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 |
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 |
What is php and sql?
Is multilevel inheritance possible in php?
How to test if a variable is an array?
What is the difference between $message and $$message in php?
What is design pattern? Explain all including singleton pattern?
What is the difference between array_map () and array_shift ()?
Are there regular expressions in php?
What is the apache?
Which is not a file-related function in php?
Is php still in demand?
What does $_cookie mean?
Extract url from this string? It should be flexible for all strings, not for this string only. "yahoo.comyahoo.co.inhotmail.org"