# Split array, then trim array?

**URL:** <https://forum.kirupa.com/t/split-array-then-trim-array/248357>\
**Category:** programming\
**Created:** [January 7, 2008, 2:44pm UTC](https://forum.kirupa.com/t/split-array-then-trim-array/248357 "2008-01-07T14:44:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onemhunki](https://avatars.discourse-cdn.com/v4/letter/o/c57346/32.png) [@onemhunki](https://forum.kirupa.com/u/onemhunki)\
**Post date:** [January 7, 2008, 2:44pm UTC](https://forum.kirupa.com/t/split-array-then-trim-array/248357/1 "2008-01-07T14:44:55Z")

</div>

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.

```php

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

```

Cheers
