Project

General

Profile

Actions

$countcs » History » Revision 1

Revision 1/5 | Next »
Per Amundsen, 07/13/2014 04:42 AM


Added in 1.8.10

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

Returns the number of times substring occurs in string.

Searches case-sensitive, use $count for case-insensitive searches.

Parameters

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

Example

;returns 1
//echo -ag $count(Aaa,A)

;returns 2
//echo -ag $count(Aaa,a)

Updated by Per Amundsen almost 10 years ago · 1 revisions

Also available in: PDF HTML TXT