Split array, then trim array?

Folks,

The below code splits an array nicely into what I need, but I have an extra ’
’ at the end. How after splitting the array can I remove this last ’
’ have tried substr and trim but don’t seem to have got it right.


$arr = split("
", $row2['properties']);

Cheers