SyntaxFix
Write A Post
Hire A Developer
Questions
Tags
How can I remove 3 characters at the end of a string in php? "abcabcabc" would become "abcabc"!
This question is related to php string
php
string
<?php echo substr($string, 0, strlen($string) - 3); ?>
<?php echo substr("abcabcabc", 0, -3); ?>
Source: Stackoverflow.com