str_replace() array error
Posted: Tue Sep 23, 2003 11:43 am
Hello,
i have the following code which searches for url and email addresses and replaces with hyperlinks
However i get the following ouput
Kendall
i have the following code which searches for url and email addresses and replaces with hyperlinks
Code: Select all
preg_match_all($exp,$_POSTї'description'],$matches);
$desc = str_replace($matchesї0],'<a href="'.$matchesї0].'" target="_blank">'.$matchesї0].'</a>',$_POSTї'description']); echo $desc;Now i know about the preg_mach_callback but i work with version 4.2.3array // just says array rather than the value
Kendall