Remove Last Character from String in PHP
rtrim($string,'x')
or
substr($string, 0, -1)
or
substr_replace($string ,"",-1)
rtrim($string,'x')
or
substr($string, 0, -1)
or
substr_replace($string ,"",-1)
Komentar