required php dom generator
Hello I have some functions that generate HTML code snippets like
echo "<div class='thtphoto' id='xcyz''>"
for($i = 0; $i <count($aFotos); $i++) {
echo "<div onclick=\"selectPhoto('".aFotos[i]['url']. "'\")" class='miniphoto_on' id='div$i'">
....
...
..
}
if someone knows开发者_如何学编程 any class that I can use to create such HTML snippets using that class will be very helpful for me.
have you tried DOMDocument?
精彩评论