\\1'", "'\\1'", "'\\1'", "'\\1'", "'

'. nl2br( '$1' ) .'

'", "'

\\1

'", "'\\2'", "'\\2'", "'\\2'", "'\\2'", "''", "'\\1'", "'\\2'", "''", "'
  • \\1
  • '", "box ( '$1' , 'php' )", "box ( '$1' , 'css' )", "box ( '$1' , 'code' )" ); $text = preg_replace ( $bbcode, $html, $text ); return $text; } function smileys ( $text, $way ) { $smileys = array ( 'xD'=>'Evil Grin', 'xd'=>'Evil Grin', ':G'=>'Grin', ':g'=>'Grin', ':D'=>'Happy Smile', ':d'=>'Happy Smile', ':)'=>'Smile', ':O'=>'Surprised', ':o'=>'Surprised />',
       	':P'=>'<img src=', ':p'=>'Tongue', ':('=>'Unhappy', ':S'=>'Confused', ':s'=>'Confused', ';)'=>'Wink' ); if ($way == 1) foreach ($smileys as $old => $new) $text = str_replace( $old, $new, $text ); elseif ($way == 2) foreach ($smileys as $old => $new) $text = str_replace( $new, $old, $text ); return $text; } ?>