Every time I see the code saying ?>, what does it mean? Does it mean that the above code has been written?
It must be written when nested in html. But in pure PHP, such as controllers, it is better not to write anything. Even if you have to write it, don’t leave a space at the end of ?>. Otherwise, an error may be reported
If it is a php file, you can omit the end character. When inserting it into html, you need to write all
<?php //Start character
?>//End character
It must be written when nested in html. But in pure PHP, such as controllers, it is better not to write anything. Even if you have to write it, don’t leave a space at the end of ?>. Otherwise, an error may be reported
If it is a php file, you can omit the end character. When inserting it into html, you need to write all
<?php //Start character
?>//End character