Some elements in my array are empty strings based on what the user has submitted. I need to remove those elements. I have this:
foreach($linksArray as $link)
I had to do this in order to keep an array value of (string) 0
$url = array_filter($data, function ($value) { return (!empty($value) || $value === 0 || $value==='0'); });