sunnyflail / assoc_shift
Array shift for associative arrays
1.0.0
2021-07-28 10:52 UTC
Requires (Dev)
- phpunit/phpunit: ^9.5
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.