05-05-2008, 08:28 AM
|
#3 (permalink)
|
|
The Acquainted
Join Date: Nov 2007
Location: Netherlands
Posts: 113
Thanks: 11
|
Something like this?
PHP Code:
$str = 'XXXX-XXX-XXX-XX-XXXX'; echo preg_replace_callback('/X/', create_function('$match', 'return chr(rand(65, 90));'), $str);
|
|
|
|