update page now
Longhorn PHP 2026 - Call For Papers

Voting

: nine minus zero?
(Example: nine)

The Note You're Voting On

shaman_master at list dot ru
6 years ago
<?php
/**
 * Convert keys in an array.
 * 
 * @param array $array Source data
 * @param callable $callback Function name (strtolower, strtoupper, ucfirst, lcfirst, ucwords)
 * @return array
 */
function array_convert_key_case(array $array, callable $callback = 'strtolower')
{
    return array_combine(
        array_map($callback, array_keys($array)),
        array_values($array)
    );
}
?>

<< Back to user notes page

To Top