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 types of Data Can Be Used as Array Keys?
Can we set session value in javascript?
How to select a database?
How to open a file in php?
Write down the code for saving an uploaded file in PHP.
What is session_start () in php?
Is php easier than node?
What is preg_match?
Should I learn php before wordpress?
How to include variables in double-quoted strings?
What is the value for this auto incremented field user_pri_id?
How to concatenate two strings in php?
How do I find environment variables?
How do you use an array in excel?
Which is correct about mysqli and pdo?