How can I check if the content of preg_replace
function is numeric/alphanumeric or not?
e.g.
if numeric :
$link= preg_replace("'\< (.*)\>'Ui","< <a href=\"x.php?id=\\1\">\\1</a>>",$link);
else
$link= preg_replace("'\< (.*)\>'Ui","< <a href=\"x.php?word=\\1\">\\1</a>>",$link);