New answers tagged


Since PHP 7 array_column() supports passing an array of objects. You would only need to cast the data to array: $ids = array_column((array) $this->params->get('ids'), 'id'); On older PHP versions you could cast to array and use Joomla\Utilities\ArrayHelper::getColumn() which supports passing array of objects on all PHP versions: use Joomla\Utilities\...

Top 50 recent answers are included