How to get last charcter after underscore of a string using PHP -
this question has answer here:
- php: split string [duplicate] 7 answers
i need 1 small help. need echo characters of string after _
using php. have @ example below.
$arr = "abcdef_123";
from above example need 123
should stored in variable.
please me.
try code :
$arr="abcdef_123"; echo end(explode("_",$arr));
Comments
Post a Comment