C#: Support imploding nested array
ronnygunawan opened this issue · comments
Ronny Gunawan commented
var arr = new[] { new [] { 1, 2, 3, 4, 5 } };
var str = PHP.Implode("+", arr);
Expected output:
str
should be "1+2+3+4+5"
Michael commented
Hello you should be able to use String.Join() to get the same functionality.
string[] arr = new string[]
{
"1",
"2",
"3",
"4"
};
var str = (String.Join("+", arr));
Console.Write(str);
Console.ReadKey();