sunnyflail/assoc_shift

Array shift for associative arrays

Installs: 14

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/sunnyflail/assoc_shift

1.0.0 2021-07-28 10:52 UTC

This package is auto-updated.

Last update: 2025-09-28 19:50:52 UTC


README

This fills the ever so needed gap - provides array_shift for shifting a value associated with a provided key

Usage

Call array_assoc_shift with key you want to shift as first parameter, and a reference to array, you want to shift value off, as second. This will return the value, and remove it from array.