PHP
Remove first and last character from a string - PHP
Login To Post Your Comment
1 comments
Manfred Lim
4 years agoThere are multiple ways of doing it. One of which is this:
$string = "12121";
substr($string,1);
$trimmed = trim($string, 1);
print($trimmed);