Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

count_words

Summary

Returns the number of words that make up the input string.

Usage

input|count_words()

Returns

An integer revealing the number of words that make up a string.

Description

This operator counts and returns the number of words that are found within the input string.

Examples

Example 1

{'Where do you want to publish today?'|count_words()}

The following output will be returned: "7".

Balazs Halasy (05/02/2004 10:53 am)

Balazs Halasy (04/05/2005 2:38 pm)


Comments

There are no comments.