Actions
$count » History » Revision 1
Revision 1/4
| Next »
Per Amundsen, 07/13/2014 04:41 AM
Added in 1.8.10
$count(string,substring,substring2,...,substringN)
Returns the number of times substring occurs in string.
Searches case-insensitive, use $countcs for case-sensitive searches.
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 10 years ago · 1 revisions