Function __global->array_push

Definitions

sources_custom/phpstub.php

  • Push one or more elements onto the end of array.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
&$array array Yes No required parameter N/A N/A The array
...$vars mixed No Yes required parameter N/A N/A ...$vars Elements to append

Returns

  • The new number of elements in the array
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Push one or more elements onto the end of array.
 *
 * @param  array $array The array
 * @param  mixed $vars ...$vars Elements to append
 * @return integer The new number of elements in the array
 */

function array_push(array &$array, ...$vars) : int