You are here: Detect Upper case characters in a string and separate them with a space « PHP Programming Language « IT news, forums, messages
Detect Upper case characters in a string and separate them with a space

Posted by zainally on 03/18/07 23:18

I want to detect uppercase characters in a string and separate the two
words in it by a space. I know I can use preg_replace for it, but I am
not very good at regular expressions. Can someone help?

One example of such a string follows. Please note that there are a lot
of strings like these and I want a generic method to do it, which is
why I think preg_replace would be the perfect solution. If someone can
help me, that would be great!

Example:

$string = "UserLocation";

I want the string to be $string = "User Location";



Zain Ally

 

Navigation:

[Reply to this 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

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