dirkuu/array-reindex

This package is abandoned and no longer maintained. No replacement package was suggested.

Package contain function who allows to easy sets new indexes

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

pkg:composer/dirkuu/array-reindex

1.0.0 2020-09-13 20:16 UTC

This package is not auto-updated.

Last update: 2023-10-10 10:47:06 UTC


README

Installation via "composer require"

composer require dirkuu/array-reindex

Usage

array_reindex

/**
 * Sets new indexes for every element using values from passed column name
 *
 * @param array $array
 * @param mixed $columnName
 * @return array
 */
function array_reindex(array $array, $columnName): array