TP5.0 拆分与拼接字符串
根据-拆分字符串:
$arrym = explode('-',$time);
用-拼接字符串:
$nian = input('post.nian');
$yue = input('post.yue');
$years = $nian . "-" . $yue;;
根据-拆分字符串:
$arrym = explode('-',$time);
用-拼接字符串:
$nian = input('post.nian');
$yue = input('post.yue');
$years = $nian . "-" . $yue;;