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
What is php string function?
How to execute an sql query? How to fetch its result?
How to check your php installation?
What do you use php for?
Is php better than python?
What is die in php?
How do you use end in python?
What is the method to execute a php script from the command line?
What is the purpose of break and continue statement?
What is difference between web service and api?
How can we set and destroy the cookie in php?
What is http php?
What is explode() in php?
List types of array are available in php?
How to call php function from javascript using ajax?