ob_start callback preg_replace

From: Date: Wed, 02 Jun 2004 22:12:26 +0000
Subject: ob_start callback preg_replace
Groups: php.general 
Request: Send a blank email to php-general+get-187493@lists.php.net to get a copy of this message
Can someone help me with preg_replace? I want to convert all numbers either 8 or 9 digits in length, into a link. Such that when it sees: John Doe, 456890123, is a new employee. It converts it to: John Doe, <a href='employee.html?id=456890123'>456890123</a>, is a new employee. function callback($buffer) { // create id links return ???????; } ob_start("callback"); Thanks much, John

« previous php.general (#187493) next »