I have a script that throws me errors because I am running PHP 5.3.1What do I need to use in the example?
$row[$j] = ereg_replace("\n", "\\n", $row[$j]);
Deprecated: The ereg_replace () function is deprecated at.
Use preg_replace , just add separators .
$row[$j] = preg_replace("#\n#", "\\n", $row[$j]);
Use preg_replace .
preg_replace