Jeg har en fejl i denne kode:
<?
function smileys($TKST)
{
$replace=array(
':)'=>'<img src="../images/smileys/glad.jpg">',
':D'=>'<img src="../images/smileys/megaglad.jpg">',
':')'=>'<img src="../images/smileys/blinker.jpg">',
';)'=>'<img src="../images/smileys/blinker.jpg">',
':('=>'<img src="../images/smileys/ked.jpg">',
':'('=>'<img src="../images/smileys/megaked.jpg">',
':O'=>'<img src="../images/smileys/overrasket.jpg">',
':P'=>'<img src="../images/smileys/tunge.jpg">',
':@'=>'<img src="../images/smileys/sur.jpg">',
'(L)'=>'<img src="../images/smileys/hjerte.jpg">',
'(S)'=>'<img src="../images/smileys/stjerne.jpg">',
':S'=>'<img src="../images/smileys/forvirret.jpg">',
'+('=>'<img src="../images/smileys/syg.jpg">',
'^o)'=>'<img src="../images/smileys/undrene.jpg">',
':$'=>'<img src="../images/smileys/genert.jpg">',
'(H)'=>'<img src="../images/smileys/varmt.jpg">',
'(sleepy)'=>'<img src="../images/smileys/zzz.jpg">',
'(S)'=>'<img src="../images/smileys/zzz.jpg">',
'*G*'=>'<img src="../images/smileys/griner.jpg">',
'*g*'=>'<img src="../images/smileys/griner.jpg">',
'*GG*'=>'<img src="../images/smileys/griner.jpg">',
'*gg*'=>'<img src="../images/smileys/griner.jpg">',
'^oo)'=>'<img src="../images/smileys/megaforvirret.jpg">',
);
return(strtr($TKST,$replace));
}
?>
Som poster: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /customers/mastersib.dk/mastersib.dk/httpd.www/zentrix/nyheder/smiley.php on line 8
Hvad er fejlen?