checking if an array value is set
I have a piece of code that grabs some ip information from a lookup and then places it in to my mysql database.
Now what i want to do is only add information where the descr field is set, for example
is their a way that i can see if the descr field in the above array is containing a value, i know i can do this with a variable but have no idea if it is possible from an array.
$address = implode(", ", (array) $ip['address']);
$descr = implode(", ", (array) $ip['descr']);
$phone = implode(", ", (array) $ip['phone']);