New answers tagged jform
0
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
Related Tags
jform × 117joomla-3.x × 50
form-fields-types × 14
component × 13
form × 12
joomla-3.4 × 11
fields × 11
custom-field × 10
custom-component × 9
model × 8
development × 7
xml × 7
joomla-2.5 × 6
plugin × 6
javascript × 6
validations × 6
php × 5
module × 4
jquery × 4
ajax × 4
filter × 4
controller × 3
jmodel × 3
validation × 3
mysql × 2