Welcome Guest, Not a member yet? Register   Sign In
how to find and count the words in a string?
#4

[eluser]basty_dread[/eluser]
wow thank you..
thanks for the reply guys..


How about this: i have a ckeditor.. and i want to count all the words in the ckeditor.. i used this code:

Code:
$vContent = "<h1 style="text-align: center;">
    <span style="font-family: comic sans ms,cursive;">reverse osmosis<br />
    </span></h1>";

$count = count(explode(" ", $vContent));

but my problem is it also counts the html tags. what should i do?
thank you for helping.


Messages In This Thread
how to find and count the words in a string? - by El Forum - 11-16-2009, 02:46 AM
how to find and count the words in a string? - by El Forum - 11-16-2009, 02:59 AM
how to find and count the words in a string? - by El Forum - 11-16-2009, 03:00 AM
how to find and count the words in a string? - by El Forum - 11-16-2009, 03:07 AM
how to find and count the words in a string? - by El Forum - 11-16-2009, 03:38 AM
how to find and count the words in a string? - by El Forum - 11-16-2009, 03:59 AM
how to find and count the words in a string? - by El Forum - 11-16-2009, 04:01 AM
how to find and count the words in a string? - by El Forum - 11-16-2009, 05:25 AM
how to find and count the words in a string? - by El Forum - 11-16-2009, 05:41 AM
how to find and count the words in a string? - by El Forum - 11-16-2009, 05:44 AM
how to find and count the words in a string? - by El Forum - 11-16-2009, 07:39 PM
how to find and count the words in a string? - by El Forum - 11-17-2009, 03:18 AM
how to find and count the words in a string? - by El Forum - 11-17-2009, 04:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB