共计 146 个字符,预计需要花费 1 分钟才能阅读完成。
1、对于数组中蕴含 json,援用其中 json 数据时:
[{
username:"a",
password:"b"
}]
则通过定位到数组中的具体位置之后,通过 -> 办法应用
$userinfo[0]->password
2、判断数组是否为空的办法为,调用数组外部函数:
$userinfo->isEmpty()
正文完
共计 146 个字符,预计需要花费 1 分钟才能阅读完成。
1、对于数组中蕴含 json,援用其中 json 数据时:
[{
username:"a",
password:"b"
}]
则通过定位到数组中的具体位置之后,通过 -> 办法应用
$userinfo[0]->password
2、判断数组是否为空的办法为,调用数组外部函数:
$userinfo->isEmpty()