Question can be unclear, but here is what I want to achieve.
I have following string:
$input = 'foo_bar_buz_oof_rab';
I need to get in the output following string:
$output = 'fbbor';
As you can see, the point is to explode string with _
and get the first letters of the substrings. What is the best method to get it ? Regex, explode and loop over substrings ?