@checktplrefresh 函数前加@ 如果错误,将不提示错误
preg_replace 正则替代
$patterns = array ("/(19|20)(/d{2})-(/d{1,2})-(/d{1,2})/", "/^/s*{(/w+)/(/");
$replace = array ("//3///4///1//2", "//1");
print preg_replace ($patterns, $replace, "{start(Date)} = 1999-5-27");