PHP - Add HTML on PHP loop element

0 votes
224 views
added Aug 20, 2018 in PHP by LC Marshal Captain (25,790 points)
edited Aug 21, 2018 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>

 

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