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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -