Alternative of php's explode/implode-functions in c#
问题 are there a similar functions to explode/implode in the .net-framework? or do i have to code it by myself? 回答1: String.Split() will explode, and String.Join() will implode. 回答2: The current answers are not fully correct , and here is why: all works fine if you have a variable of type string[] , but in PHP, you can also have KeyValue arrays, let's assume this one: $params = array( 'merchantnumber' => "123456789", 'amount' => "10095", 'currency' => "DKK" ); and now call the implode method as