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