I'm learning PHP and was wondering if there some like ValueList() for PHP? Thank you in advance.
$data = Array
(
[0] => Array
(
[id] => 851099
[title] => Iron Maiden
)
[1] => Array
(
[id] => 852099
[orgName] => Judas Priest
)
[2] => Array
(
[id] => 861099
[orgName] => Black Sabbath
)
)
$valueListTitle = ValueList($data.title)
echo $valueListTitle;
which return this: "Iron Maiden, Judas Priest, Black Sabbath"
Yes, check out array_column and implode to add commas.
Sample usage:
which return this: "Iron Maiden, Judas Priest, Black Sabbath, Deep Purple, Rolling Stones"