php,二维数组的输出出现了问题,提示:Notice: Array to string conversion
2017-04-07 19:25
447 查看
<?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
- Notice:Array to string conversion,该怎么解决
- 使用CURL上传文件和数据时提示Array to string conversion错误,解决方法!
- PHP出现Notice: Undefined index: act in C:\警告提示
- Android在使用过程中出现The connection to adb is down, and a severe error has occured提示问题的解决
- php连接mysql提示Call to undefined function mysql_connect() 或 ZenCart MySQL支持问题的解决
- 关于使用JSON库的时候,出现[NSCFString JSONValue]: unrecognized selector sent to instance的问题
- PHP出现Notice: unserialize() [function.unserialize]: Error at offset问题的解决方案
- 通达OA 菜单突然消失报错:array_values experts parameter 1 to be array,string given in.index_simple.inc.php(图文)
- Aspose Words 把内容读到stream中时容易出现的问题,以及memorystream to string
- Conversion from string literal to 'char *' is deprecated 问题原因
- 如何使php页面中不再出现NOTICE和DEPRECATED的错误提示
- selenium调用Firefox和Chrome需要注意的一些问题,和出现的报错selenium:expected [object undefined] undefined to be a string
- mysql连接linux系统提示“登录出现1130 is not allowed to connect to this MySql server”问题,解决方法
- Why array_diff() gives Array to string conversion error? array_diff报错!Array to string conversion err
- php出现Notice: Use of undefined constant.....问题的解决方法
- PHP出现Notice: unserialize() [function.unserialize]: Error at offset问题的解决方案
- 关于出现 ArrayAdapter requires the resource ID to be a TextView问题
- php中出现Notice: Uninitialized string offset: 0原因及解决办法