Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP str_word_count — Return information about words used in a string

<?php

$str = "Hello fri3nd, you're
       looking          good today!";

print_r(str_word_count($str, 1));
print_r(str_word_count($str, 2));
print_r(str_word_count($str, 1, 'àáãç3'));

echo str_word_count($str);

?>
 
PREVIOUS NEXT
Tagged: #PHP #Return #information #words #string
ADD COMMENT
Topic
Name
1+7 =