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 boolean in php?
What is the difference between single-quoted and double-quoted strings in php?
What is regular expression in php?
Tell me what is use of in_array() function in php?
What are the different opening and closing tags available in PHP?
what is the use of include() function when include_once() alone will enough?
What is the use of print_r function in php?
armstrong number by using php while number is given by the keyboard.?
How to check a variable is an array or not in php?
How to get best php developer Experience in Php with Sugar CRM / VTiger.
How to get ip address of clients machine?
Why is node js better than php?