[PHP] Re: Executing functions within ereg_replace() output

2002-04-07 Thread Adam Wan
Thanks! That preg_replace_callback helps alot. -Adam "Cc Zona" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Adam Wan) wrote: > > > $content = 'string string 12463409834234 string string'; > > $content =

[PHP] Re: Executing functions within ereg_replace() output

2002-04-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Adam Wan) wrote: > $content = 'string string 12463409834234 string string'; > $content = ereg_replace( "[0-9]{14}" , substr("\\1",0,5) , $content ); > > // this is the output i want, but the above doesnt seem to be the right way > to generate i