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
Is python easier than php?
Explain the ternary conditional operator in php?
Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?
What is if isset ($_ post submit )) in php?
What are the two most common ways to start and finish a php block of code?
how to detect a mobile device using php
What is rtrim php?
Is null function in php?
What is instantiation?
Why php is better?
Is php front end or back end?
How to close a session properly?
Tell me are parent constructors called implicitly inside a class constructor?
What is mysql_real_escape_string used for?
What are the advantages of php mysql?