A few elements in my array are blank strings dependent on what the user has submitted. I need to eliminate those elements. I have this:
foreach($linksArray as $link)
{
if($link == '')
{
unset($link);
}
}
print_r($linksArray);
Yet, it doesn't work.
$linksArray
actually has blank elements. I have additionally taken a stab at doing it with the
empty()
function, however the result is something very similar.