if(mb_eregi("\b{$value}\b",$tmp))
{
$has_fw++;
$tmp = mb_eregi_replace("\b({$value})\b","***",$tmp);
}
I am not able to find anything about this error on the web. What is causing this error?
if(mb_eregi("\b{$value}\b",$tmp))
{
$has_fw++;
$tmp = mb_eregi_replace("\b({$value})\b","***",$tmp);
}
I am not able to find anything about this error on the web. What is causing this error?
Copyright © 2021 Jogjafile Inc.
Try:
Using {} inside of a regex makes the function think you're trying to find a repeating value when it looks like you didn't intend to use the {} as a regex operator, but instead you intended it to evaluate $value, which isn't the case inside of a regex.