PHP how to retrieve array values

$name = $array['name'];
$comment = $array['comment'];
$tags = $array['item']['tags']; // this will be an array of the tags

You can then loop over the tags like:

foreach ($tags as $tag) {
  // do something with tag
}

Or access each one individually

echo $tags[0];
echo $tags[1];

Leave a Comment