<?
// Test example:
echo '<pre>';
$aInput = '
abtgh kdghg 9867 jkuhkh
^ {
ooijj 438764 - 56_ 67
';
$aInput = ereg_replace('[^\n\r]', ',' , $aInput);
echo $aInput;
echo '</pre>';
Why doesn't this keep the newlines?
Instead it converts everything into ','.
?>
best regards
Thomas
// Test example:
echo '<pre>';
$aInput = '
abtgh kdghg 9867 jkuhkh
^ {
ooijj 438764 - 56_ 67
';
$aInput = ereg_replace('[^\n\r]', ',' , $aInput);
echo $aInput;
echo '</pre>';
Why doesn't this keep the newlines?
Instead it converts everything into ','.
?>
best regards
Thomas
Comment