Function __global->_find_words

Definitions

sources/spelling.php

  • Find all the words in some text.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$text string No No required parameter N/A N/A Text to scan for words in (should be plain text, not be HTML text)
$unicode_accepted boolean No No True N/A N/A Whether Unicode is accepted

Returns

  • List of words
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find all the words in some text.
 *
 * @param  string $text Text to scan for words in (should be plain text, not be HTML text)
 * @param  boolean $unicode_accepted Whether Unicode is accepted
 * @return array List of words
 */

function _find_words(string $text, bool $unicode_accepted = true) : array