gar onn Posted November 17, 2009 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 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
Archived
This topic is now archived and is closed to further replies.