Gen. partnerAlgotech

PHP function str_word_count()

Return information about words used in a string

|
September 11, 2019

Availability in versions: PHP 4.3.0

Return information about words used in a string

Parameters

Parameter Data type Default value Note
$string string not The string
$format int null, Specify the return value of this function. The current supported values are: 0 - returns the number of words found @param string $charlist [optional]

A list of additional characters which will be considered as 'word'

$charlist string null A list of additional characters which will be considered as 'word'

Return Values

mixed

an array or an integer, depending on the format chosen.

Other resources

Official str-word-count documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.