Giter VIP home page Giter VIP logo

php5-array's Introduction

ArrayHelper - хелпер для удобной работы с массивами

composer require darkfriend/php5-array

  • ArrayHelper::in_array($needle, $haystack) - highload method for search value in array
  • ArrayHelper::isMulti($arr) - check array on multiple array
  • ArrayHelper::sortValuesToArray($sourceArray,$orderArray) - Sort values array to order array
  • ArrayHelper::sortKeysToArray($sourceArray,$orderArray) - Sort keys source array to order array
  • ArrayHelper::keysExists($arKeys, $sourceArray) - found keys in source array
  • ArrayHelper::removeByKey(array $source, array $keys, bool $negative = false) - remove keys from source array. If set negative in true then remove all except for keys
  • ArrayHelper::removeByValue(array $source, array $values, bool $negative = false) - found values and remove item from source array. If set negative in true then remove all except for values
  • ArrayHelper::mergeValues(array $array1, array $array2, array $keys = []) - merge values $array2 in $array1 at null or empty values $array1

php5-array's People

Contributors

darkfriend avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.