开发者

required php dom generator

开发者 https://www.devze.com 2023-03-15 17:25 出处:网络
Hello I have some functions that generate HTML code snippets like echo \"<div class=\'thtphoto\' id=\'xcyz\'\'>\"

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消