what is a quick and clean way to output a property for each object in an array. for example:
$array=[object1,object2,object3];
now I only need to get the name for each object:
object->name;
and output as a string like
name1,name2,name3
I don't like using for loop, I guess there is a quick way in php, please advise. thanks.