Source Code : 
NSStringimplode(NSString *glueNSArray *parts){
    return [
parts componentsJoinedByString:glue];
}
 
//Example:
NSArray *arr = [ [ NSArray alloc initWithObjects:@"obj1",@"obj2",@"obj3",@"obj4"nil ];

[Login or Register to remove this advertisement]

NSString *joinedstring implode(@", "arr);
//Result:   "One, Two, Three" 
Xcode Reviewed by Xcode on . implode function NSString* implode(NSString *glue, NSArray *parts){ return ; } //Example: NSArray *arr = initWithObjects:@"obj1",@"obj2",@"obj3",@"obj4", nil ]; NSString *joinedstring = implode(@", ", arr); //Result: "One, Two, Three" Rating: 5