cleaning up code.
This commit is contained in:
@@ -177,18 +177,6 @@ function array_first($array, $callback, $default = null)
|
||||
return value($default);
|
||||
}
|
||||
|
||||
/**
|
||||
* Spin through the array, executing a callback with each key and element.
|
||||
*
|
||||
* @param array $array
|
||||
* @param mixed $callback
|
||||
* @return array
|
||||
*/
|
||||
function array_spin($array, $callback)
|
||||
{
|
||||
return array_map($callback, array_keys($array), array_values($array));
|
||||
}
|
||||
|
||||
/**
|
||||
* Recursively remove slashes from array keys and values.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user