i get an error...but i dont understand :( Parse error: syntax error, unexpected '[', expecting ')' in /home/lordofth/public_html/forum/viewthread.php on line 78 [code]<? function emoticon($r['post']) { // the line below this is line 78 $emoticonarray = array( ':)' => 'smile.gif', ':(' => 'sad.gif', ';)' => 'wink.gif', ':P' => 'tongue.gif' ); foreach($emoticonarray as $emoticon => $img) { $search[] = $emoticon; $replace[] = '<img src="/emoticons/' . $img . '" alt="' . $emoticon . '" />'; } $r['post'] = str_replace($search, $replace, $r['post']); return $r['post']; } echo stripslashes($r['username']); ?></td> <td style="width:80%;background-color:#101010;"> <? echo nl2br(stripslashes($r['post'])); ?></td> </tr> </table>[/code]