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 are the rules for naming a php variable?
What are the common uses of php?
Explain converting an object?
Can the value of a constant change during the script's execution?
What is php dependency injection?
What are php errors?
What is alias in php?
Is salary fixed or variable cost?
Can I learn php without knowing c?
What does empty mean in php?
How to invoke a user function?
Which function is used in php to check the data type of any variable?
What is a php web application?
What is php? Why it is used?
What is PHP's configuration file called?