How can I insert a substring(for example a space) inside dhe fifth position of a string:
This: 12:45Mtv
to this: 12:45 Mtv
Insert a string inside a string
Moderator: General Moderators
-
klevis miho
- Forum Contributor
- Posts: 413
- Joined: Wed Oct 29, 2008 2:59 pm
- Location: Albania
- Contact:
Re: Insert a string inside a string
http://www.php.net/manual/en/ref.strings.phpklevis miho wrote:How can I insert a substring(for example a space) inside dhe fifth position of a string:
This: 12:45Mtv
to this: 12:45 Mtv
'nuff said
Re: Insert a string inside a string
Actually, considering that this question was posted in the Javascript forum everything you need to know is on this page:
http://www.javascriptkit.com/javatutors/string4.shtml
http://www.javascriptkit.com/javatutors/string4.shtml