Skip to content

My first Composer package. Helper for more easier usage arrays in PHP

License

Notifications You must be signed in to change notification settings

moxemus/array-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Just add the package to your project using Composer:

composer require moxemus/array-helper

Usage

Add Helper class in your project and use like a static class:

use moxemus\array\Helper as ArrayHelper;

$data = [
    'a' => 'word',
    12,5 => 23,
    null => false
];

$realFirstIndex = ArrayHelper::getFirstIndex($data); #: 'a'
$realFirstValue = ArrayHelper::getFirstValue($data); #: 'word'

About

My first Composer package. Helper for more easier usage arrays in PHP

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages