Function __global->array_walk

Definitions

sources_custom/phpstub.php

  • Apply a user function to every member of an 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
&$array array Yes No required parameter N/A N/A Data
$callback mixed No No required parameter N/A N/A Process function

Returns

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Apply a user function to every member of an array .
 *
 * @param  array $array Data
 * @param  mixed $callback Process function
 * @return boolean Success status
 */

function array_walk(array &$array, $callback) : bool