hussan Posted August 7, 2014 Share Posted August 7, 2014 Olá, I have this codE: $cb = 'str_replace("' . $this->LE . '", "", "<$1>");'; $encoded_value[$key] = preg_replace("/<([^>]+)>/e", $cb, $encoded_value[$key]); error: "PHP message: PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead How can i transform this code to preg_replace_callback ? thanks Quote Link to comment https://forums.phpfreaks.com/topic/290337-convert/ Share on other sites More sharing options...
Jacques1 Posted August 7, 2014 Share Posted August 7, 2014 (edited) Did you read the manual? What did you not understand? Edited August 7, 2014 by Jacques1 Quote Link to comment https://forums.phpfreaks.com/topic/290337-convert/#findComment-1487135 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.