Function __global->array_key_exists

Definitions

sources_custom/phpstub.php

  • Checks if the given key or index exists in the array.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$key mixed No No required parameter N/A N/A Key
$search array No No required parameter N/A N/A Search array

Returns

  • Whether the key is set in the search array
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Checks if the given key or index exists in the array.
 *
 * @param  mixed $key Key
 * @param  array $search Search array
 * @return boolean Whether the key is set in the search array
 */

function array_key_exists($key, array $search) : bool