Project

General

Profile

$countcs » History » Revision 3

Revision 2 (Per Amundsen, 08/12/2015 09:36 AM) → Revision 3/5 (Per Amundsen, 08/12/2015 09:37 AM)

_Added in 1.8.10_ 

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

 Returns the number of times substring occurs in string. 

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

 *Parameters* 

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

 *Example* 

 <pre> 
 ; Count number of times 'A* appears in 'Aaa'. ;returns 1 
 //echo -ag $countcs(Aaa,A) 

 ; Count number of times 'a* appears in 'Aaa'. ;returns 2 
 //echo -ag $countcs(Aaa,a) 
 </pre>