Hi, will be happy if someone help me with this. I think it can be done with regular expression. Lets the input text is "HereIsExampleText" and I want the result to be "Here Is Example Text"
use this : $string = 'HereIsExampleText'; $pattern = "/([A-Z])/"; $result = preg_replace($pattern," $1",$string); print $result; PHP: hope it helps u good luck =D
Wow. Great solve! And then we can use it: $result = ltrim( $result ); PHP: to remove the first space.