pisc/upperscore

General functions for PHP

1.0.9 2016-09-12 13:30 UTC

This package is not auto-updated.

Last update: 2024-05-11 16:29:02 UTC


README

Latest Stable Version Build Status

upperscore

General functions for PHP

Installation

$ composer require pisc/upperscore

How to use:

PHP version >= 5.6

use function pisc\upperscore\arrayFlatten;

$flat = arrayFlatten([ 'cow', [ 'bear', ['bunny', 'santa' ], 'rabbit' ]]);

PHP version < 5.6

use pisc\upperscore as u;

$flat = u\arrayFlatten([ 'cow', [ 'bear', ['bunny', 'santa' ], 'rabbit' ]]);

Run tests

$ ./phpunit.sh