Function __global->array_map

Definitions

sources_custom/phpstub.php

  • Applies the callback to the elements of the given 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
$callback mixed No No required parameter N/A N/A Callback map function
$array array No No required parameter N/A N/A In

Returns

  • Out
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Applies the callback to the elements of the given array.
 *
 * @param  mixed $callback Callback map function
 * @param  array $array In
 * @return array Out
 */

function array_map($callback, array $array) : array