I need to separate the string, remove the blank spaces and the arrow, I just want to keep the tags, each one in a different variable. The first one if it comes out but the second one no longer.
$str = 'PD/R --> PPA';
$parte_1 = substr($str,0,strrpos($str, "-")-2).'<br>';
$parte_2 = substr($str, -2);
These labels may vary, for example: 'F --> A' ó 'F --> FJ'
. I reiterate, I just want to keep the two labels.
Thank you.