$title="<{t}>您的验证码是:<{/t}><{$vcode}>,<{t}>请在注册页输入验证码并完成注册;验证码<{$vcode2}>有效期24小时<{/t}>";
if($data!=""){
preg_match_all('/<{$(S+)}>/iU', $title, $result);
foreach($result[1] as $k => $v){
$v=explode('.',$v);
$data=$tmpArr;
foreach($v as $key => $val){
$data=$data[$val];
if(is_array($data))
continue ;
else{
$title = str_replace($result[0][$k],$data,$title);
}
}
}
}