你需要的是这样的效果吧?
$a = '';
$r = '%()%i';
if (preg_match_all($r,$a,$match)) {
print_r($match);
}
?>
输出结果:
Array
(
[0] => Array
(
[0] =>
[1] =>
[2] =>
)
[1] => Array
(
[0] =>
[1] =>
[2] =>
)
[2] => Array
(
[0] => pic01.jpg
[1] => pic02.jpg
[2] => pic03.jpg
)
)
你说的是数据库批量处理掉p吗?