Hello,
I would like to make a word have a space inbetween each letter.
example:
Hello -> H e l l o
thank you!
Space after each letter in a word.
Moderator: General Moderators
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
[feyd@home]>php -r "$a = 'Hello'; echo implode(' ',preg_split('##',$a,-1,PREG_SPLIT_NO_EMPTY));
H e l l o- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York