Insert Spaces Between Capital Letters in a String
Posted: May 18th, 2009 | Author: Troy | Filed under: PHP |Works well with formatting output of form field keys.
preg_replace(’/(\w+)([A-Z])/U’, ‘\\1 \\2′, $string);
Works well with formatting output of form field keys.
preg_replace(’/(\w+)([A-Z])/U’, ‘\\1 \\2′, $string);
Leave a Reply
You must be logged in to post a comment.