Comments on: PHP Functions : Remove Last Character From String In PHP https://www.tutsmake.com/php-functions-remove-last-character-from-string-in-php/ Tutorials Maker Fri, 10 Mar 2023 06:43:56 +0000 hourly 1 By: Tuts Make https://www.tutsmake.com/php-functions-remove-last-character-from-string-in-php/#comment-221 Sat, 12 Oct 2019 03:10:43 +0000 http://www.tutsmake.com/?p=4435#comment-221 In reply to lara.

Using substr() function, You can remove 3 characters at the end of a string in PHP.
like this :-
echo substr($string, 0, -3);

]]>
By: lara https://www.tutsmake.com/php-functions-remove-last-character-from-string-in-php/#comment-220 Fri, 11 Oct 2019 07:57:08 +0000 http://www.tutsmake.com/?p=4435#comment-220 How to remove last 3 character from string php?

]]>
By: Denial https://www.tutsmake.com/php-functions-remove-last-character-from-string-in-php/#comment-219 Fri, 11 Oct 2019 07:55:31 +0000 http://www.tutsmake.com/?p=4435#comment-219 Helpful for substr_replace, substr or trim function to remove the last character from a string in PHP.

Thanks tutsmake.com for remove last character from string in php.

]]>