|
|
1
0
好的,实际上你需要的是
|
|
|
2
0
$string = '[CODE]';
$translate = array('classname' => 'oddRow', 'hash' => 'abcdef');
foreach($translate AS $key=>$value)
{
$string = str_ireplace('[' . $key . ']', $value, $string);
}
|