Answers for "cut symbol from the end of a string php"

PHP
10

get last character of string php

substr("testers", -1); // returns "s"
Posted by: Guest on March-05-2020
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
2

php substr remove last 4 characters

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

remove space from start and end of string in php

$trimmed = trim($text);
var_dump($trimmed);
Posted by: Guest on September-22-2020

Code answers related to "cut symbol from the end of a string php"

Browse Popular Code Answers by Language