Project

General

Profile

Actions

$addtokcs » History » Revision 2

« Previous | Revision 2/10 (diff) | Next »
Per Amundsen, 02/07/2014 08:50 PM


$addtokcs

Added in 1.9.0

$addtokcs(text,token,C)

Adds a token to the end of text but only if it is not already in text.

//echo -ag $addtokcs(a.b.c,D,46) returns a.b.c.D
//echo -ag $addtokcs(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-sensitive, see $addtok for case-insensitive version.

Updated by Per Amundsen about 10 years ago · 2 revisions

Also available in: PDF HTML TXT