Actions
$addtok » History » Revision 4
« Previous |
Revision 4/15
(diff)
| Next »
Per Amundsen, 02/07/2014 08:46 PM
$addtok¶
Added in 1.9.0
$addtok(text,token,C)
Adds a token to the end of text but only if it is not already in text.
//echo -ag $addtok(a.b.c,d,46) returns a.b.c.d //echo -ag $addtok(a.b.c.d,c,46) returns a.b.c.d
The C parameter is the ascii value of the character separating the tokens.
$addtok is case-insensetive, see $addtokcs for case-sensetive version.
Updated by Per Amundsen almost 11 years ago · 4 revisions