![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
文章平均质量分 62
weixin_40835666
这个作者很懒,什么都没留下…
展开
-
我在开发php处理数组常用的函数
in_array() 在数组中搜索特定的值 arrary_key_exists() 数组查找key是否存在 array_search() 在数组中搜索一个特定的值 array_keys() 返回数组的所有键 array_values() 返回数组中所有的值 key() 返回数组当前指针所在位置 array_unique() 删除数组所有重复的值 array_merge() 将数组合并一个数组 array_merge_recursive() 将数组合并一个数组,重复的 不会覆盖 array_rand() 随机原创 2020-08-19 11:06:36 · 99 阅读 · 1 评论 -
Elasticsearch-PHP 2.0 Content-Type header [] is not supported
分享一个最近使用Elasticsearch-PHP 2.0 碰到的问题。tp3.1.3报错 Content-Type header [] is not supported。 找了很多方法,没有效果,最后跟着源码发现: 修改 vendor\elasticsearch\elasticsearch\src\Elasticsearch\Connections\Connection.php 这个文件 ...原创 2019-09-19 17:02:52 · 433 阅读 · 1 评论