Function __global->array_change_key_case

Definitions

sources_custom/phpstub.php

  • Changes all keys in an array.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$input array No No required parameter N/A N/A The array to work on
$case integer No No required parameter N/A N/A Either CASE_UPPER or CASE_LOWER

Returns

  • An array with its keys lower or uppercased
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Changes all keys in an array.
 *
 * @param  array $input The array to work on
 * @param  integer $case Either CASE_UPPER or CASE_LOWER
 * @return array An array with its keys lower or uppercased
 */

function array_change_key_case(array $input, int $case) : array