When the value of $myString is “1234_567_90”;
The code below produces the right of the last delimiter “90.”
list($l,$m,$r) = explode('_',$mystring,3);
echo "<p>Right: $r</p>";
If I don’t know how many delimiter are in $myString.
How can I get the value of the right of the last delimiter?
I like to produce “90” when the value of $myString is “1234_567_90.”
I like to produce “abc” when the value of $myString is “1234_567_90_abc.”
I like to produce “567” when the value of $myString is “1234_567.”