Home > Resources > Online Tools > PHP Functions > strlen() & str_word_count()

Live Sandbox PHP strlen() and str_word_count() Functions

PHP strlen() and str_word_count() Function
Instructions/Notes

strlen($your_string) — This PHP function returns the length (number of characters) of a string as an integer value.

str_word_count($your_string) — This PHP function returns the number of words of a string as an integer value.