一小段PHP代码问题
- PHP code
<!---ecms Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php $txt =<<
这样正则好像不对,我就想了另一个折中的办法:
- PHP code
<!---ecms Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php $txt =<<
这样的正则能得到../Documents/medies/Link_icon1.gif和../Documents/medies/Link_icon.gif
于是我想再替换掉。可是报错:
Warning: preg_replace() [function.preg-replace]: Unknown modifier ‘/’ in
需要得到的是Link_icon1.gif和Link_icon.gif。前面的../Documents/medies/路径是固定的。
该怎么做呢?
—–本@文来源[email protected]搞@^&代*@码网(搞代gaodaima码
-解决方案——————–
$s=join(“‘,'”,$imgne);
$sql = “update imgmulu set page_id = 101370 where img_name in (‘”. $s.”‘)”;