How to read php
i'm learning php, I wrote this. (It is from a book)
<?php if(!empty($data)): ?>
<ul>
<?php foreach ($data as $dataprint): ?>
<li><?= $dataprint ?></li>
<?php endforeach ?>
</ul>
I am unable to understand some of the code in this section.
1. Why are there colons on line 1 and 3?
2. What does the '<?= $dataprint ?> ) and why does it not have the standard 'PHP' word?
3. why is there an equal mark in the next?