<?php
$categoria1 = new stdClass();
$categoria1->nome = "Categoria 1";
$categoria2 = new stdClass();
$categoria2->nome = "Categoria 2";
$categorias = array($categoria1, $categoria2);
$nomes = array_map(function($objeto) { return $objeto->nome; }, $categorias);
echo $lista;
PD9waHAKCiRjYXRlZ29yaWExID0gbmV3IHN0ZENsYXNzKCk7CiRjYXRlZ29yaWExLT5ub21lID0gIkNhdGVnb3JpYSAxIjsKCiRjYXRlZ29yaWEyID0gbmV3IHN0ZENsYXNzKCk7CiRjYXRlZ29yaWEyLT5ub21lID0gIkNhdGVnb3JpYSAyIjsKCiRjYXRlZ29yaWFzID0gYXJyYXkoJGNhdGVnb3JpYTEsICRjYXRlZ29yaWEyKTsKCiRub21lcyA9IGFycmF5X21hcChmdW5jdGlvbigkb2JqZXRvKSB7IHJldHVybiAkb2JqZXRvLT5ub21lOyB9LCAkY2F0ZWdvcmlhcyk7CiRsaXN0YSA9IGltcGxvZGUoIiAtICIsICRub21lcyk7CgplY2hvICRsaXN0YTs=