PHP array and implode with blank/null values
I think you can use array_filter
to your array before use implode()
function
$address = implode("\n", array_filter($addressarray));
I think you can use array_filter
to your array before use implode()
function
$address = implode("\n", array_filter($addressarray));