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