On Wednesday 17 July 2002 20:07, Henry wrote: > Hi All, > > I'm looking for a simple was to correct a list of proper nouns given all in > lower case! > > For example > > given $string="london paris rome"; > > I would like "London Paris Rome". > > However there is one cavet; if the word already has a captital anywhere in > it, it should be left alone!!!
ucwords() > Is there a soultion using regular expressions? Yes. > Also is there one for removing multiple spaces? Yes. > i..e given "A B C D E" it would give "A B C D E". -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Stability itself is nothing else than a more sluggish motion. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php