Function __global->cms_mb_str_split

Definitions

sources/global4.php

  • Convert a string to an array, with utf-8 awareness where possible/required.
  • 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 Input
$force boolean No No False N/A N/A Whether to force unicode as on

Returns

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

Preview

Code (PHP)

/**
 * Convert a string to an array, with utf-8 awareness where possible/required.
 *
 * @param  string $str Input
 * @param  boolean $force Whether to force unicode as on
 * @return array Output
 */

function cms_mb_str_split(string $str, bool $force = false) : array