Function __global->str_split

Definitions

sources_custom/phpstub.php

  • Convert a string to an 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
$str string No No required parameter N/A N/A The input string
$split_length integer No No 1 N/A N/A Maximum length of the chunk

Returns

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

Preview

Code (PHP)

/**
 * Convert a string to an array.
 *
 * @param  string $str The input string
 * @param  integer $split_length Maximum length of the chunk
 * @return array Result
 */

function str_split(string $str, int $split_length = 1) : array