serhatozles/yii2-arraysearch 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

serhatozles/yii2-arraysearch

Composer 安装命令:

composer require serhatozles/yii2-arraysearch

包简介

This function is searching inside of array.

README 文档

README

This function is searching inside of array. See: https://github.com/serhatozles/ArrayAdvancedSearch

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist serhatozles/yii2-arraysearch "dev-master"

or add

"serhatozles/yii2-arraysearch": "dev-master"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

$query		=	"a='Example World' and b>='2'";

$Array			=	array(
    'a' => array('d' => '2'),
    array('a' => 'Example World','b' => '2'),
    array('c' => '3'),
    array('d' => '4'),
);

$Result = \serhatozles\arraysearch\ArraySearch::q($Array,$query,1);

echo '<pre>';
print_r($Result);
echo '</pre>';

// Output:
// Array
// (
//    [0] => Array
//        (
//            [a] => Example World
//            [b] => 2
//        )
//
// )

统计信息

  • 总下载量: 298
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2014-11-28