Posted by joanna on 10/29/07 20:42
Hi, I'm using preg_replace to strip out a bunch of unwanted stuff from the database. However the results seem to bunch up. Here's what I'm doing $old = htmlspecialchars($row['name']); $new = preg_replace("/[^a-zA-Zs]/", "", $old); the results of this are TomSmith instead of Tom Smith What do I need to add to the expression to get the desired space between words?
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming