sunnyflail/assoc_shift

Array shift for associative arrays

1.0.0 2021-07-28 10:52 UTC

This package is auto-updated.

Last update: 2024-04-28 16:50:22 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.