Why array_diff() gives Array to string conversion error? array_diff报错!Array to string conversion err
2015-12-11 17:11
453 查看
According to it:
One of your arrays is multidimensional.
checks one dimension of a n-dimensional array. Of course you can check deeper dimensions by using
php -r 'array_diff(array("a" => array("b" => 4)), array(1));' PHP Notice: Array to string conversion in Command line code on line 1 PHP Stack trace: PHP 1. {main}() Command line code:0 PHP 2. array_diff() Command line code:1
One of your arrays is multidimensional.
array_diffonly
checks one dimension of a n-dimensional array. Of course you can check deeper dimensions by using
array_diff($array1[0], $array2[0]);
就素说!array_diff这个玩意呢!它只对以为数组管用!嘿嘿!
相关文章推荐
- android夯实与晋级
- Hello Mybatis 03 数据关联
- Unity3D研究院之Assetbundle的实战(六十三)
- 浅谈 MVP in Android
- 有关FragmentDialog的细节问题
- Xcode清除编译缓存
- Implement Queue using Stacks
- msyql在查询字段中的所有记录,不重复
- 概率分布(多项分布,Dirichlet分布)
- 不花钱开店 网上发布产品 最便宜的推广(第一章)
- [算法]KMP算法
- 统计某个端口的访问量
- 揭秘高效协作工具背后的技术架构
- Html5(1)
- Android开发笔记(十七)GIF动画的实现GifAnimation
- hax kernel module is not install
- 44 You want to enable resumable space allocation at the instance level. Which two actions would enab
- 分析类
- jetty 9 嵌入式开发示例
- linux下使用bower时提示bower ESUDO Cannot be run with sudo解决办法