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
How can you create a session in php?
How can I increase my website session?
Which is better mysql or sql?
What is an object in php?
What is inheritance in php with example?
Is php a middleware?
What is php destruct?
What is regex in html?
What are the php variables?
What is the major php security hole? How to avoid?
What is the ioncube php loader?
Can we use php variable in javascript?
Can age be a variable?
What are the uses of php language?
What are getters and setters php?