Answers for "compare sub string in php without substr function"

PHP
10

get last character of string php

substr("testers", -1); // returns "s"
Posted by: Guest on March-05-2020
3

take last four digits php

$newstring = substr($dynamicstring, -7);
Posted by: Guest on May-04-2020

Browse Popular Code Answers by Language