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
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.