I used the string.split method on a very large string and I need to put it back together. I've used PHP for a long time and with it you just simply use the implode function to do this. What would be the C# equivalent to this function?
Printable View
I used the string.split method on a very large string and I need to put it back together. I've used PHP for a long time and with it you just simply use the implode function to do this. What would be the C# equivalent to this function?
Hi there,
I'm not too familiar with PHP, but I believe you are looking for String.Join()
Here is the documentation:Code:string[] str = { "Bob", "eats", "apples", "and", "bananas" };
MessageBox.Show(string.Join(" ", str));
http://msdn2.microsoft.com/en-us/lib...in(vs.80).aspx
That looks like what I've been searching for... It's always something simple.
Thanks.