Function __global->is_iterable

Definitions

sources_custom/phpstub.php

  • Verify that the contents of a variable is an iterable value.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$var mixed No No required parameter N/A N/A Variable to check

Returns

  • Whether it is
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Verify that the contents of a variable is an iterable value.
 *
 * @param  mixed $var Variable to check
 * @return boolean Whether it is
 */

function is_iterable($var) : bool