This code looks fine to me but why i’m getting errors. please need help.thanks
[php]
<?php public function f_misc_deldelimiter( &$Txt, $Delim ) { $len = strlen( $Txt ); if ( 1 < $len && $Txt[0] === $Delim ) { if ( $Txt[$len - 1] === $Delim ) { $Txt = substr( $Txt, 1, $len - 2 ); } return false; } return true; } ?>[/php]