refactoring the router.

This commit is contained in:
Taylor Otwell
2012-01-27 08:47:12 -06:00
parent 54e0bef6b5
commit 7aecd7857f
2 changed files with 22 additions and 4 deletions

View File

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