Image Array from Block

Permalink
Hi There,

I am using the designer content block that I have setup to allow me to add a total of 5 images.

I am building a custom jquery slider that requires the images to be output in a Javascript snippet in the 'head' of the document.

In order to output them I need to create an array of images, then output the variable in the js snippet in the head.

my block code is very simple and provides the code for the 5 images:

<img src="<?php echo $field_1_image->src; ?>" />
<img src="<?php echo $field_2_image->src; ?>" /> etc

I need to create an array from this and add the 5 images to it.

I am fairly new to this so any hep would be greatly appreciated.

Thanks