i have a smile function
i want a simple add on it i want to set the limit for replace codes with smiles
function smiles($shout){
//This function searches the shout for the smilies and replaces it with the image code.
$FileName="lists/smiles.php";
$list = file ($FileName);
foreach ($list as $value) {
list ($code,$image,) = explode ("|^|", $value);
$shout = str_replace ($code, '<img src="smiles/'.$image.'" title="'.$code.'">', $shout);
}
return $shout;
}
plz help