Hello Javascript Guru's,
I have a query with the following javascript snippet. I would be very helpful if someone can give me some pointers.
Can you please let me know what the function(matchstr,parens) means? Which function would it call? There is no code above or below thats relevant to this excpet the function dec2char.
str = str.replace(/&#([0-9]{1,7});/g,
function(matchstr, parens) {
return dec2char(parens);
}
);
I dono if this is the correct forum to ask, but I need to convert this logic to php. If someone has any pointers as how the function(matchstr,parens) can be converted please let me know that also.
Thanks a lot
Regards,
Subin
I have a query with the following javascript snippet. I would be very helpful if someone can give me some pointers.
Can you please let me know what the function(matchstr,parens) means? Which function would it call? There is no code above or below thats relevant to this excpet the function dec2char.
str = str.replace(/&#([0-9]{1,7});/g,
function(matchstr, parens) {
return dec2char(parens);
}
);
I dono if this is the correct forum to ask, but I need to convert this logic to php. If someone has any pointers as how the function(matchstr,parens) can be converted please let me know that also.
Thanks a lot
Regards,
Subin