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

PHP - Add HTML on PHP loop element

0 votes
added Aug 20, 2018 in PHP by LC Marshal Captain (26,090 points)
edited Aug 21, 2018 by LC Marshal
<div class="project-details-row row">
	<div class="col-md-4 detail-title">Documents</div>
	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>';


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.