PHP remove empty tring from array
I'm trying to remove all empty strings "" from the kat-array. I tried to do it by using array_filter function like this:
$array = array_filter($array, "strlen");
The problem is that kat[4] is now an object instead of an array.
Any idea how I can remove empty stings from an array without transforming them into an object?
Before
After
from Recent Questions - Stack Overflow https://ift.tt/3nZ1gDw
https://ift.tt/38RNdJk


Comments
Post a Comment