Answers for "trim first and last specific char php"

PHP
0

php string cut first x characters

$str = "The quick brown fox jumps over the lazy dog."
$str2 = substr($str, 4); // "quick brown fox jumps over the lazy dog."
Posted by: Guest on October-27-2020
1

php remove last 3 letters from string

echo substr($string, 0, -3);
Posted by: Guest on October-01-2020

Code answers related to "trim first and last specific char php"

Browse Popular Code Answers by Language