2017 © Pedro Peláez
 

yii2-extension yii2-arraysearch

This function is searching inside of array.

image

serhatozles/yii2-arraysearch

This function is searching inside of array.

  • Thursday, June 2, 2016
  • by serhatozles
  • Repository
  • 2 Watchers
  • 1 Stars
  • 124 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

Advanced Array Search

This function is searching inside of array. See: https://github.com/serhatozles/ArrayAdvancedSearch, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

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

or add, (*4)

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

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

$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 '

';
print_r($Result);
echo '
'; // Output: // Array // ( // [0] => Array // ( // [a] => Example World // [b] => 2 // ) // // )

The Versions

02/06 2016

dev-master

9999999-dev

This function is searching inside of array.

  Sources   Download

GPL-2.0+

by Avatar serhatozles

extension yii2 arraysearch