I have a PHP page which accepts input from user in a text area. Multiple strings are accepted as input from user & would contain \'\\n\' and I am scanning it as:
Try this:
$data = explode("\n", $_GET['TxtareaInput']); foreach($data as $value){ fwrite($ourFileHandle, $value.PHP_EOL); }