Actions
$removecs » History » Revision 1
Revision 1/2
| Next »
Per Amundsen, 08/10/2015 06:34 AM
Added in 1.8.10
$removecs(string,substring,...)
Removes any occurrence of substring in string.
$removecs is case-sensitive, see $remove for case-insensitive version.
Parameters
string - The string to search.
substring - The substring to remove.
... - Additional substrings to remove.
Example
; Remove all occurrences of 'CD' from the string. //echo -ag $removecs(abcdCDefg,CD) ; Remove all occurrences of 'A', 'C', 'E', 'G' from the string. //echo -ag $removecs(aAbcCdeEfgG,a,c,e,g)
Updated by Per Amundsen over 9 years ago · 1 revisions