Project

General

Profile

Actions

$count » History » Revision 2

« Previous | Revision 2/4 (diff) | Next »
Per Amundsen, 08/12/2015 09:36 AM


Added in 1.8.10

$count(string,substring,substring2,...,substringN)

Returns the number of times substring occurs in string.

$count is case-insensitive, see $countcs for case-sensitive version.

Parameters

string - The string to search for.
substring,substring2,...,substringN - Substrings to search.

Example

; returns 1
//echo -ag $count(hello,el)

; returns 2
//echo -ag $count(hello,l)

Updated by Per Amundsen over 9 years ago · 2 revisions

Also available in: PDF HTML TXT