Answers for "php remove 2 characters from end of string"

PHP
0

string remove last two characters php

echo substr($string, 0, -2);
Posted by: Guest on June-29-2021

Code answers related to "php remove 2 characters from end of string"

Browse Popular Code Answers by Language