I have an array like below which is generated by parsing a xml url.
The array is
Array ( [Tags] => SimpleXMLElement Object ( [0] =
Right code of two ppl before ^_^
/* return true if values of array are empty */ function is_array_empty($arr){ if(is_array($arr)){ foreach($arr as $value){ if(!empty($value)){ return false; } } } return true; }