I have an array like below which is generated by parsing a xml url.
The array is
Array ( [Tags] => SimpleXMLElement Object ( [0] =
if array is look like this [null] or [null, null] or [null, null, null, ...]
you can use implode:
implode is use for convert array to string.
if(implode(null,$arr)==null){ //$arr is empty }else{ //$arr has some value rather than null }