msg 部分被 json_encode() 一次
{"status":1,"msg":{"tel":"\u7535\u8bdd\u53f7\u7801\u683c\u5f0f\u4e0d\u6b63\u786e"}}
msg 部分被 json_encode() 了两次
{"status":1,"msg":"{"tel":"\u7535\u8bdd\u53f7\u7801\u683c\u5f0f\u4e0d\u6b63\u786e","password":"\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a","name":"\u5458\u5de5\u59d3\u540d\u4e0d\u80fd\u4e3a\u7a7a","position":"\u6743\u9650\u8bbe\u7f6e\u4e0d\u80fd\u4e3a\u7a7a"}"}
// [] 表示
'tel' => array('required','regex:/^1[3-5]\d{9}$/i'),
// () 表示子表达式
'tel' => array('required','regex:/^1(3-9){10}$/i'),
网友评论