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 =
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
2 matches
Mail list logo