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 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 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.