I am looking for a way to cut my strings at comma location.
$string1 = 'Something, Other, Display, This';
$string2 = 'Something, Display, This';
$string3 = 'Something, Something, Something, Display, This';
these strings are dynamic, they will never be the same, above is only examples of how they can look like.
so here is my problem. How to I display ONLY the “two-last-parts” of the strings?
Meaning, to cut away the rest and only display last 2 parts, nomather how different the strings are.
echo 'Display,This';
Thanks for any suggestions on this!
1 Answer