str.substring last 2 java
String substring = str.length() > 2 ? str.substring(str.length() - 2) : str;
str.substring last 2 java
String substring = str.length() > 2 ? str.substring(str.length() - 2) : str;
substr last 3 characters
<?php
$string = "testing string 123";
echo substr($string,-3); //this will give last 3 characters of the above string
// output "123"
echo substr($string,-5); //this will give last 5 characters of the above string
// output "g 123"
echo substr($string,5); //this will give first 5 characters of the above string
// output "testi"
?>
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