<?php
//str_word_count.php
$str = 'php5 and mysql';
echo "string: $str <br/>";
echo strlen($str);
echo"<br/> No of words :  ";
echo str_word_count($str);
?>
<html>
<title> str_word_count.php</title>
<body bgcolor="#E7F2F5" text="#000080">
</body>
</html>