Page 1 of 1

Help file on gettokenindex is incorrect

Posted: 11 Nov 2013 05:44
by binocular222
in Help file:
echo gettokenindex("xls", "docx|doc|xlsx|xls"); //4
This result in 3, not 4
should be change to
echo gettokenindex("xls", "docx|doc|xlsx|xls",,"i"); //4

Re: Help file on gettokenindex is incorrect

Posted: 11 Nov 2013 07:12
by armsys
binocular222 wrote:in Help file:
echo gettokenindex("xls", "docx|doc|xlsx|xls"); //4
This result in 3, not 4
should be change to
echo gettokenindex("xls", "docx|doc|xlsx|xls",,"i"); //4
Confirm.
Thanks.

Re: Help file on gettokenindex is incorrect

Posted: 11 Nov 2013 08:46
by admin
Yep, thanks. I now think the default [flags=iw] was not such a good idea. [flags=i] or [flags] would have been better. Too late.