- end: documentation ( source)
- explode: documentation ( source)
- trim: documentation ( source)
<?php
$str = 'Advisor Geologist – HighMount Exploration & Production LLC – Oklahoma City, OK';
$arr = explode( '-', $str);
$last = trim( end( $arr));
echo $last;