gar onn Posted November 17, 2009 Report Share Posted November 17, 2009 PHP has many functions to replace strings, But I do not understand how things like this work: preg_replace("/(<\/?)(\w+)([^>]*>)/e", "'\\1'.strtoupper('\\2').'\\3'", $html_body); could someone explain this and say what the above code does? yes, I've red the pages on php.net Link to comment Share on other sites More sharing options...
Synook Posted November 17, 2009 Report Share Posted November 17, 2009 Firstly, do you know what regular expressions are? If not, you may want to read up about them somewhere like http://www.regular-expressions.info/. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now