[wp-hackers] [Plugin: SEO Super Comments] Extending the Code

Matt Jacob matt at mattjacob.com
Fri Nov 27 00:11:13 UTC 2009

On Thu, Nov 26, 2009 at 4:41 PM, scribu <scribu at gmail.com> wrote:
>> So I'm trying to figure out the code for this and not sure where to
>> start. Is there a variable or something that counts the number of
>> words in a comment for example? If there is I could use it as part of
>> a if statement.
> $wordcount = count(split(' ', $comment->content));

Or even str_word_count(), which is a built-in function.


More information about the wp-hackers mailing list