我需要拆分并打印记录的日期值,我得到了夹板字符串,但我可以用聪明的方式打印我的代码如下
查询
select month(dob),day(dob),year(dob) from user_details
输出
$us=array{["day(usr_dob)"]=> string(1) "5" ["month(usr_dob)"]=> string(1) "3" ["year(usr_dob)"]=> string(1) "0"}`*
我需要调用数组归纳
{$us.day(usr_dob)}
但是页面显示错误..我如何打印值,我还需要检查该值是否与任何数字值匹配
请帮助我
为什么不使用别名?
select month(dob) as month, day(dob) as day, year(dob) as year from user_details