Hello,
$message = str_replace( "\n", "<br>", $message );
Am using the above code to display a message including its line break in html format from a textarea.
How do i do with spaces?
Thank u
I'm not entirely sure on what you need here.
" "
Does that mean anything to you?
By the way, you should try nl2br http://uk2.php.net/nl2br
I am not sure either what you are going for but a space can be found as ascii hex like this
preg_match("/\x20/", $string);