To replace all images or connected alt titles we must use regular functions. Let’s look at an example of replacing image alt
*/
preg_replace('#alt="[^"]*"#i','alt="".$title.""',$str);
/*
mixed preg_replace (mixed pattern, mixed replacement, mixed subject [, int limit])
Searches subject for a match of pattern and replaces it with replacement. If limit is specified, only limit matches are replaced; if limit is omitted or has a value of -1, all matches are replaced.
Filter all html tags
*/
$html_body ="
fdafdsacontent";
preg_replace("/(?)(w+)([^>]*>)/e",
"'1'.strtoupper('2').'3'",
$html_body);
//For more details, please see: php tutorialer/php-function/33530.htm">http://www.bKjia.c0m/phper/php-function/33530.htm