get last character of string php
substr("testers", -1); // returns "s"
get last character of string php
substr("testers", -1); // returns "s"
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."
php substr remove last 4 characters
echo substr($string, 0, -3);
remove space from start and end of string in php
$trimmed = trim($text);
var_dump($trimmed);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us