Jump to content

Help with example code


patswof

Recommended Posts

I am trying to teach myself php and I have a question about an example code from the book I am using.

 

<?php

  if (!empty($error_message)) { ?>

  <p class="error"><?php echo $error_message; ?></p>

  <?php } ?>

 

I understand what the code does but I don't understand the break up of the opening and closing tags of the php. I appreciate any help

Link to comment
https://forums.phpfreaks.com/topic/286325-help-with-example-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.