title: Adding new line into text file is not working
body: <p><strong>My code:</strong>    </p>
  
  <pre><code> $file = WWW_ROOT . 'CSV' . DS . 'customer_mobileNumber.txt';
   $handle = fopen($file, "w");
   $content = '';    
   foreach ($customers as $customer) {
       $mobile = trim($customer['Customer']['mobile']);
       $alt_mobile = trim($customer['Customer']['alt_mobile']);
       if (!empty($mobile))
           $content .= $customer['Customer']['mobile'] . PHP_EOL;
       if (!empty($alt_mobile))
           $content .= $customer['Customer']['alt_mobile'] . PHP_EOL;
    }
    fwrite($handle, $content);
    fclose($handle);
  </code></pre>
  
  <p>Even I try with "\n" instead of PHP_EOL. But newline is not added into the text file.</p>