So, lets say I have a $somestring thats holds the value \"main/physician/physician_view\".
$somestring
I want to grab just \"physician_view\". I want it to also wo
For another one liner, you can use the explode trick and reverse the array:
current(array_reverse(explode('/',$url)));