php string replace using index code example
Example 1: php replace return character
$string = str_replace("\n", "", $string);
$string = str_replace("\r", "", $string);
Example 2: php replace string within string
$new_string = str_replace( $take_out, $put_in, $string);