+ 2

What is a tag for add link and picture in PHP?

1st Jan 2017, 5:18 PM
Nur Wahida
Nur Wahida - avatar
2 odpowiedzi
+ 8
You mean insert <a>/<img> in HTML with PHP? (do it like this : "<?php echo "<a href='http://www.google.com'>Link</a>"; ?>")
1st Jan 2017, 5:29 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
To note, PHP can be ran procedural. This allows HTML and PHP to be parsed as it loads top->bottom. <a href="<?php echo $link[$i]; ?>">Link</a> ran in a loop can return just like the string ValentinHacker put out.
3rd Jan 2017, 5:00 PM
Louis Milotte
Louis Milotte - avatar