Re: insert space to a string (newbie)

From: Date: Sun, 09 Sep 2001 05:21:53 +0000
Subject: Re: insert space to a string (newbie)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-66582@lists.php.net to get a copy of this message
You wrote: > I have a simple question... > How can a space inserted to a string after the 3rd char ?? > > washington ->> was hington $str = 'washington'; $str = ereg_replace('^(.{3})(.*)$', '\\1 \\2', $str); -- -Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/

« previous php.general (#66582) next »