3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'Advisor Geologist – HighMount Exploration & Production LLC – Oklahoma City, OK'; $arr = explode( '-', $str); $last = trim( end( $arr)); echo $last;
Output for 4.3.0 - 7.1.0
Advisor Geologist – HighMount Exploration & Production LLC – Oklahoma City, OK