php undefined index..using isset() with is_array()

This is my code:

if(is_array($ItemAttr["Actor"])){
  $Actors = implode(", ", $ItemAttr["Actor"]);
} else {
  $Actors = $ItemAttr["Actor"];
}

I’m getting undefined index: Actor in **line 1** and **line 3**

I guess i should use isset() function. Can anyone tell me how to combine that function with is_array() function..?

Leave a Reply

*

Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories