Reply to adding space between words preg_replace

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация