array change key case code example Example: php lowercase assoc array array_walk($yourArray, function(&$value) { $value = strtolower($value); });