Function __global->cms_mb_str_word_count

Definitions

sources/global4.php

  • Isolate the words in the input string, with utf-8 awareness where possible/required.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$input string No No required parameter N/A N/A String to count words in
$format integer No No 0 0 1 2 N/A The format

Returns

  • Typically a list - the words of the input string
  • Type: mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Isolate the words in the input string, with utf-8 awareness where possible/required.
 *
 * @param  string $input String to count words in
 * @param  integer $format The format
 * @set 0 1 2
 * @return mixed Typically a list - the words of the input string
 */

function cms_mb_str_word_count(string $input, int $format = 0)