;remove first char:
$firstCharRemoved=substr($string,2)
;or:
$firstCharRemoved=right($string,-1)

;remove last char:
$lastCharRemoved=substr($string,1,len($string-1))
;or:
$lastCharRemoved=left($string,-1)

remove first and last char:
$firstAndLastCharRemoved=substr($string,2,len($string-2))
;or:
$firstAndLastCharRemoved=left(right($string,-1),-1)
_________________________
!

download KiXnet