php,二维数组的输出出现了问题,提示:Notice: Array to string conversion
2018-04-14 12:46
429 查看
<?php $arr=array(array("111","222","333"),array("444","555","666")); print_r("{$arr[0][1]}"); ?>
这样就可以了,多维数组、以及下标不是简单数值的数组,都需要{}起来。
将数据传递到javascript中时同样适用
相关文章推荐
- php,二维数组的输出出现了问题,提示:Notice: Array to string conversion
- phpmyadmin error Notice: Array to string conversion in libraries\Error.class.php
- 使用CURL上传文件和数据时提示Array to string conversion错误,解决方法!
- Notice:Array to string conversion,该怎么解决
- php中出现Notice: Uninitialized string offset: 0原因及解决办法
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- PHP中出现“Unable to load dynamic library”问题的解决方法
- PHP出现Notice: unserialize() [function.unserialize]: Error at offset问题的解决方案
- PHP输出CSV文件出现乱码问题
- php中出现“Call to a member function Execute() on a non-object”的问题
- 关于使用JSON库的时候,出现[NSCFString JSONValue]: unrecognized selector sent to instance的问题
- PHP出现Notice: Undefined index: act in C:\警告提示
- magento 第四章 出现 "Fatal error:Call to a member function load() on a non-object in \Abstract.php" 问题
- PHP出现Notice: unserialize() [function.unserialize]: Error at offset问题的解决方案
- php中出现问题Call to undefined function curl_init()
- Conversion from string literal to 'char *' is deprecated 问题原因
- 如何使php页面中不再出现NOTICE和DEPRECATED的错误提示
- deprecated conversion from string constant to 'char *' 问题剖析
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- token 6.x-1.17 "preg_match_all() expects parameter 2 to be string, array given in token_scan()" 问题解决