Hi i have a string which has <br/> in it, which is converted to an array.
$files = "Pretty Hurts<br/>
Ghost/Haunted<br/>
Drunk in Love (feat. Jay-Z)<br/>
Blow<br/>
No Angel<br/>
Yoncé/Partition<br/>
Jealous<br/>
Rocket<br/>
Mine (feat. Drake)
<br/>"
$files_to_array = explode('<br/>', $files);
when i print_r the array there's an empty element in the array i tried trimming the string before i add it to the array, empty elemnt still appears. how can i solve this?
print_r(array_filter($files_to_array));this is what i getArray ( [0] => Pretty Hurts [1] => Ghost/Haunted [2] => Drunk in Love (feat. Jay-Z) [3] => Blow [4] => No Angel [5] => Yoncé/Partition [6] => Jealous [7] => Rocket [8] => Mine (feat. Drake) [9] => )