?>What does it mean?
Ywy
Ywy 2018-05-04 10:15:35
0
4
4210

Every time I see the code saying ?>, what does it mean? Does it mean that the above code has been written?

Ywy
Ywy

reply all(3)
hello world

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

  • reply OK, thanks
    Ywy author 2018-05-04 11:45:56
  • reply Master, sometimes you don’t write?&gt;You won’t get an error, so is it better to write or not to write?
    MrSwan author 2018-05-04 12:16:35
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template