i have different websites content stored in a variabel named $content. Now what i would want to do is to search the content for META-tags like this:
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
And then replace the utf-8 to IS0-8859-1. How do i do that with preg_replace?
Note that every occurence is not like that meta-tag. It could be different depending on which website you fetch.
You don’t need to use
preg_replaceto do that. Just usestr_replace: