How to send a array as a parameter to a web service
I'm working in a iPhone app that needs to send a array as a parameter using PHP web service.

for example:


- (void)ListImagesPublic:(int )userID Token:(NSString *)token ithDelegate:(NSObject<ConnectionManagerDelegate> *)delegate{
    NSString *idu=[NSString stringWithFormat:@"%d",userID];
    NSString *url=[NSString stringWithFormat:@"%@?user=%@&token=%@",kURL_LISTBYUSER_IMAGEPUBLIC,
                   [idu stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding],
                   [token stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
    NSLog(@"%@",url);
    NSString *jsonString = [self jsonFromURLString:url ithDelegate:delegate];
    NSData *jsonData = [jsonString dataUsingEncoding:NSUTF32BigEndianStringEncoding];
    CJSONDeserializer *jsonDeserializer = [CJSONDeserializer deserializer];
    NSError *error = nil;
    NSDictionary *resultsDictionary = [jsonDeserializer deserializeAsDictionary:jsonData error:&error];
    if (error==nil) {
        [delegate remoteDataLoaded:resultsDictionary];
    }else{
        [delegate connectionFailed];
    }
}
How to send a array as a parameter to a web service??
Thanks.
How to send a array as a parameter to a web service
===

I'm working in a iPhone app that needs to send a array as a parameter using PHP web service.

for example:


- (void)ListImagesPublic:(int )userID Token:(NSString *)token ithDelegate:(NSObject<ConnectionManagerDelegate> *)delegate{
    NSString *idu=[NSString stringWithFormat:@"%d",userID];
    NSString *url=[NSString stringWithFormat:@"%@?user=%@&token=%@",kURL_LISTBYUSER_IMAGEPUBLIC,
                   [idu stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding],
                   [token stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
    NSLog(@"%@",url);
    NSString *jsonString = [self jsonFromURLString:url ithDelegate:delegate];
    NSData *jsonData = [jsonString dataUsingEncoding:NSUTF32BigEndianStringEncoding];
    CJSONDeserializer *jsonDeserializer = [CJSONDeserializer deserializer];
    NSError *error = nil;
    NSDictionary *resultsDictionary = [jsonDeserializer deserializeAsDictionary:jsonData error:&error];
    if (error==nil) {
        [delegate remoteDataLoaded:resultsDictionary];
    }else{
        [delegate connectionFailed];
    }
}
How to send a array as a parameter to a web service??
Thanks.