
you locate a string position by using arrays $fourth = $str[3]; then use the str_replace function On Mon, Oct 25, 2010 at 8:12 PM, Erick Njenga <eriknjenga@gmail.com> wrote:
Anyone got an idea of an internal PHP function that would enable me to insert a symbol e.g. '-' after every 4 characters in a String? e.g. 12345678 becomes 1234-5678.
--
Thanks and Regards, Erick Njenga Nyachwaya, M: +254-725-008-790
<http://www.facebook.com/ErickNjenga><http://www.twitter.com/ErickNjenga>
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke