I'm trying to build a responsive gallery. Since views won't let me rewrite the field's output with html5 data attributes I need to print the output using a PHP field in views.
Using the module views_php, I'm accessing the values of the image field this way:
$source = $data->_field_data['nid']['entity']->my_field['und']['filename'];
This way I load the value from the ['und'] array, this would work properly if a field has a single value. But what if in the node creation, in my field I want to upload multiple images. How could I change the [und] numerical value to load as many values as my field has.
Thanks in advance.