which function can do this?
Thanks for help.
$mystring = substr( $mystring, 1 );
that should do it.
*edit: you don't need strlen($mystring)-1 as the third parameter 🙂
-Jim Keller http://www.centerfuse.net
you can also use $mystring = preg_replace('/./', '', $mystring); but that won't strip the character if the first character is a newline ( "\n" ), so only use it for single line strings. I prefer the substr() method though.