Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

PHP - Add HTML on PHP loop element

0 votes
7 views
added Aug 20 in PHP by LC Marshal Lieutenant (13,450 points)
edited Aug 21 by LC Marshal
<div class="project-details-row row">
	<div class="col-md-4 detail-title">Documents</div>
	<?php
	foreach ($documents as $e) {
		$doc_l = str_ireplace("public://propertydocuments/", $doc_url, $e['uri']);
		$link = $e['uri'];
		echo '
		     <li class="detail-docs">', '<a href="'.$doc_l.'">','<i class="material-icons">get_app</i>', $e['filename'], '</a>', '</li>';
	
	}
	?>
</div>

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...