salve sto avendo dei problemi con foreach:

Codice PHP:
function textmessage($msg){
    
    
$arricons= array("[>:(]"=>"images/guestbook/emoticons/emoticons0011.gif","[|:/]"=>"images/guestbook/emoticons/emoticons0012.gif","[8\]"=>"images/guestbook/emoticons/emoticons0013.gif","[=(]"=>"images/guestbook/emoticons/emoticons0014.gif");
    
}

foreach(
$arricons as $key => $valore){
    
$textstr_replace($key,$valore,$msg);
}

return 
$text
Warning: Invalid argument supplied for foreach()