Can someone help me get the last 4 digits of a string? No matter what the string or format may be...
$string = "1234 5678 9012 3456"; - or - $string = "1234567890123456";
should read
$last4 = "3456";
Thanks!
Use the function: substr()
Paul 🙂
Looks good, thanks!