refactoring the router.
This commit is contained in:
@@ -219,6 +219,17 @@ function array_strip_slashes($array)
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Divide an array into two arrays. One with keys and the other with values.
|
||||
*
|
||||
* @param array $array
|
||||
* @return array
|
||||
*/
|
||||
function array_divide($array)
|
||||
{
|
||||
return array(array_keys($array), array_values($array));
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if "Magic Quotes" are enabled on the server.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user