PHP 正则 ${1} 解释
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php $string = 'aaaa3aaa6aaaa2aaaaaa0aaaaaa2aaa1a';$pattern=array('/(\d)/i');$replace=array('[${1}]');echo $string."<br/>";echo preg_replace($pattern, $replace, $string);?>