title: Passing NSMutableArray to the server
body: <p>I'm currently working with AddressBook in iOS, I'm getting the emails from all the contacts of the user, and putting them into the <code>NSMutableArray</code>. Now I must to pass this array to the server[PHP]. But the problem that is the emails are in the double quotes, so it looks something like this:</p>
  
  <pre><code>(
    "user@gmail.com",
    "user2@gmail.com",
    "user3@gmail.com"
  )
  </code></pre>
  
  <p>That is my code:</p>
  
  <pre><code>ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, NULL);
  __block BOOL accessGranted = NO;
  if (ABAddressBookRequestAccessWithCompletion != NULL) { // we're on iOS 6
      dispatch_semaphore_t sema = dispatch_semaphore_create(0);
      ABAddressBookRequestAccessWithCompletion(addressBook, ^(bool granted, CFErrorRef error) {
          accessGranted = granted;
          dispatch_semaphore_signal(sema);
      });
      dispatch_semaphore_wait(sema, DISPATCH_TIME_FOREVER);
  }
  else { // we're on iOS 5 or older
      accessGranted = YES;
  }
  
  if (accessGranted) {
      CFArrayRef people = ABAddressBookCopyArrayOfAllPeople(addressBook);
      _usersEmails = [[NSMutableArray alloc] initWithCapacity:CFArrayGetCount(people)];
      for (CFIndex i = 0; i &lt; CFArrayGetCount(people); i++) {
          ABRecordRef person = CFArrayGetValueAtIndex(people, i);
          ABMultiValueRef emails = ABRecordCopyValue(person, kABPersonEmailProperty);
          for (CFIndex j=0; j &lt; ABMultiValueGetCount(emails); j++) {
              NSData* email = [(__bridge NSString*)ABMultiValueCopyValueAtIndex(emails, j) dataUsingEncoding:NSUTF8StringEncoding];
              [_usersEmails addObject:email];
          }
          CFRelease(emails);
      }
      CFRelease(addressBook);
      CFRelease(people);
  </code></pre>
  
  <p>Web-programmer that was implementing the server-side, told me that I must to pass the array of strings without the double quotes. </p>
  
  <p><strong>How can I remove the double quotes in each string of my array?</strong></p>
  
  <p>Update:</p>
  
  <p>This is the piece of the actual data that had been received by the server:</p>
  
  <pre><code>\"user@gmail.com\"','\"user@gmail.com\"','\"user@gmail.com\"','\"user@me.com\"
  </code></pre>