title: issue with converting data from server (PHP) to NSString
body: <p>Ok, so I am very very new to iOS development and also to PHP (well, I know practically nothing about PHP) but I am trying to do the following: my app uses an external key that it retrieves from my server and assign it to an NSString. The problem is that the string gets extra link break (\n) and an extra space and its very annoying to parse. I am guessing that I am doing something wrong cause I don't see the logic in this. Can someone please explain how I could avoid that? </p>
  
  <p>Here is my code:</p>
  
  <pre><code>NSMutableURLRequest *request = [[NSMutableURLRequest alloc]init];
  [request setTimeoutInterval:180.0]; 
  [request setURL:[NSURL URLWithString:urlString]]; //url to the getkey.php file 
  [request setHTTPMethod:@"POST"];
  
  NSString *key = [[NSString alloc] initWithData:[NSURLConnection    sendSynchronousRequest:request returningResponse:nil error:nil] encoding:NSUTF8StringEncoding];
  </code></pre>
  
  <p>The PHP file (silly i know, but suppose to do the job, and again, i know nothing about PHP so thats good for me): </p>
  
  <pre><code>&lt;?php
  
   echo 23204239423;
  
  ?&gt; 
  </code></pre>
  
  <p>"key" gets 23204239423 with an extra space and \n.</p>