Notice: Trying to get property of non-object problem
来源:互联网 发布:mysql as 编辑:程序博客网 时间:2024/04/29 21:49
<?php
$json_string='{"docid":"8F24","topicid":"084Q","flag":
"行情类"}';
$jsons=json_decode($json_string);
echo $jsons->docid;
echo $jsons->flag;
?>
json中出现中文 就提示:Notice: Trying to get property of non-object problem
解决办法把代码另存为utf-8就可以了
- Notice: Trying to get property of non-object problem
- smarty局部缓存,报错 Notice: Undefined index: data Notice: Trying to get property of non-object
- Unable to get value of the property '2': object is null or undefined
- Trying to get a list of collections from mongoose
- Attempt to set a non-property-list object
- [User Defaults] Attempt to set a non-property-list object
- Attempt to set a non-property-list object
- Attempt to insert non-property list object - 芒果iOS
- Attempt to set a non-property-list object
- Attempt to set a non-property-list object
- NSUserDefaults 存数据 Attempt to insert non-property list object
- Call to member function of non-object: setDebug()
- Memcached ++++ exception thrown while trying to get object from cache for key
- the object of type 'Transform' has been destroyed but your are still trying to access it
- The object of type 'RectTransform' has been destroyed but you are still trying to access it
- Javascript: How to enumerate property of an object ?
- 微软企业库--Activation error occured while trying to get instance of type Database
- Activation error occured while trying to get instance of type Database
- 如何正确理解Spring
- 新浪微博——点击按钮自动加关注代码/一键关注
- 模块划分
- NYOJ - 另类乘法
- 些许浮想
- Notice: Trying to get property of non-object problem
- 在QTP中四种模拟键盘输入的方式
- 第一篇 搭建开发环境
- set oracle report status - waring
- hdu (4414)(BFS+DFS)
- 前端工程师面试问题
- 不知起什么名字好……
- extundelete usage
- xcode 出现libxml/tree.h编译错误解决办法