I'm really curious as to how to output data from ereg_replace() in a
standard way.

I'm familiar with "\\1" to ouput the original string, but not sure as to how
I can use functions within the output parameter to process this value
further.

---------------------
// here is a simple example of what i'm trying to do

$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 it.

string string 12363 string string
--------------------

any ideas?
-Adam



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to