Page 1 of 1

[Solved] SC fomatlist() separator

Posted: 11 Jun 2024 20:51
by Norn

Code: Select all

 $text = "1,2,3";
 text formatlist($text, "f", ",", "!1|3"); //1,2,3

 $text = "1|2|3";
 text formatlist($text, "f", "|", "!1|3"); //2

Re: SC fomatlist() separator

Posted: 11 Jun 2024 21:01
by jupe
You need to use the same separator for the filter as the main sep.

Re: SC fomatlist() separator

Posted: 11 Jun 2024 21:04
by Norn
Yes, I found it, report back. :)

Code: Select all

 $text = "1,2,3";
 text formatlist($text, "f", ",", "!1,3"); //2
Didn't see it explained, explain it in the notes maybe.