To replace all the images or the alt title of the connection, we must use the regular function, see a replacement picture Alt instance
*/
preg_replace (' #alt = ' [^ ']* ' #i ', ' alt= ' ". $title." ", $str);
/*
Mixed preg_replace (mixed pattern, mixed replacement, mixed subject [, int limit])
Searches the subject for a match in pattern mode and replaces it with replacement. If limit is specified, only the limit match is replaced, and if the limit is omitted or the value is-1, all occurrences are replaced.
Filter all HTML tags
*/
$html _body = "
FDAFDSA content ";
Preg_replace ("/( ]*>)/E",
"' 1 '. Strtoupper (' 2 '). ' 3 ' ",
$html _body);
For more details please see: PHP tutorial Er/php-function/33530.htm ">http://www.bkjia.c0m/phper/php-function/33530.htm
http://www.bkjia.com/PHPjc/632986.html www.bkjia.com true http://www.bkjia.com/PHPjc/632986.html techarticle to replace all of the images or the connected ALT title we must use the regular function, see a replacement picture alt instance */preg_replace (' #alt =[^]* #i ', ' alt=. $title. ', $STR); */* M ...