This is an old revision of the document!
count ( haystack_expr , needle_expr )
count ( haystack_expr , needle_expr , boolean_expression)
returns positive_integer_value
==== Description ====
Return the count of the string needle in the string haystack. You may also specify an optional third value, a boolean value to specify that the search will treat upper and lower case letters the same.
==== Example ====
<code>
print count(“Hello”, “lo”)
print count(“Buffalo buffalo buffalo.”,“BUFFALO”,true)
</code>
will display
<code>
1
3
</code>
==== See Also ====
==== History ==== |0.9.6.55|New to Version|