0
I need to create Ivs that will be populated by objects of a class, I have in mind that will need to use a foreach creating a div for each object, but I do not know how to call and position these Ivs in html, whether it is via ajax or otherwise.
0
I need to create Ivs that will be populated by objects of a class, I have in mind that will need to use a foreach creating a div for each object, but I do not know how to call and position these Ivs in html, whether it is via ajax or otherwise.
1
You can do so, for example:
<div class="list-wrapper">
<ul>
<?php foreach ($items as $item): ?>
<li><?php echo $item; ?></li>
<?php endforeach; ?>
</ul>
</div>
Reference:
Browser other questions tagged php html
You are not signed in. Login or sign up in order to post.
I will try to implement vlw
– Reignomo