1、对于数组中包含json,引用其中json数据时:
[{
username:"a",
password:"b"
}]
则通过定位到数组中的具体位置之后,通过->方法使用
$userinfo[0]->password
2、判断数组是否为空的方法为,调用数组内部函数:
$userinfo->isEmpty()
1、对于数组中包含json,引用其中json数据时:
[{
username:"a",
password:"b"
}]
则通过定位到数组中的具体位置之后,通过->方法使用
$userinfo[0]->password
2、判断数组是否为空的方法为,调用数组内部函数:
$userinfo->isEmpty()
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。