PHP ereg_replace deprecated -
i have script throws me errors because run php 5.3.1
have use in example?
$row[$j] = ereg_replace("\n", "\\n", $row[$j]);
deprecated: function ereg_replace() deprecated in..
use preg_replace instead, add delimiters.
$row[$j] = preg_replace("#\n#", "\\n", $row[$j]);
Comments
Post a Comment