1

I'm only a beginner in PHP, but I see many times in PHP code something like this:

<?php if(!empty($field)) : ?>
// HTML code
<?php endif; ?>

What there's a need to use : here, after the expression? If it's a shorthand, then why there's no ? immediately after the expression? And how this(the above code) should be read(in words, please)?

Thank you

hazzzar
  • 11
  • 1

0 Answers0