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 type of headers that PHP supports?
Which operator is used to combine string values in php?
How to remove leading and trailing spaces from user input values in php?
How do you remove duplicates from an array?
When do sessions end?
Please explain is it possible to use com component in php?
Explain me what is the difference between explode() and split() functions?
Explain me is it possible to destroy a cookie?
Is laravel easy to learn?
How does api connect to database?
How to run the interactive php shell from the command line interface?
What are the ways to include file in php?
What are the Advantages and Application Areas of PHP?
How to check a key exist in an array?
What is a class in php programing?