HomePHP Write a PHP script to get the last three characters of a string Vikram somai September 23, 2021 0 Comments Facebook Twitter Write a PHP script to get the last three characters of a stringsubstr():-The substr() function returns a part of a string.code:-<?php$str = 'hello';echo substr($str, -3)."\n";?>output:-llo Tags PHP Facebook Twitter
Post a Comment
If you have any doubts, Please let me know
Thanks!