Code Library
Home Submit Free Hosting Link To Us Contacts

PHP Count Words in a string

PHP Count Words in a string PHP PHP Count Words in a string Download (.zip)



<?
$string = "Random text"; 
$count = count(explode(" ",$string)); 
echo "$count words";
?>






Tatet