0
我想SMF的[IMG]設置高亮轉換爲HTML,它看起來像這樣:SMF [IMG]設置高亮的HTML
[img width=600 height=300]url[/img]
我的劇本是這樣的,但不工作,有什麼不對?
$text = preg_replace("/\[img width=(.*) height=(.*)\](.*)\[\/img\]/Usi", "<img src=\"\\3\" class=\"image\" style=\"width:\\1; height:\\2\" />", $text);
$ text = preg_replace(「/ \ [img width =(。*?)height =(。*?)\](。*?)\ [\/img \]/Usi」, 「
」,$ text); 仍然無效... –
Ender
2013-04-07 15:13:43