I have this code in php -:
function pregRepler($matches)
{
* do something
}
$str = preg_replace_callback($reg_exp,'pregRepler',$str);
When in function pregRepler
, i would want to know the current match number
like if it is the first match or the second or anything...
How do i do it.??