I need to split a string in PHP by \"-\" and get the last part.
So from this:
abc-123-xyz-789
I expect to get
$string = 'abc-123-xyz-789'; $exploded = explode('-', $string); echo end($exploded);
EDIT::Finally got around to removing the E_STRICT issue