Jump to content

array spliting


cmb

Recommended Posts

right now my array is set up so the title of the picture (which is a number) is the key and the keyword or words associated with that picture are the values separated by commas:

Array(
    [1.jpg] => Tyler
    [10.jpg] => Callum
    [11.jpg] => Callum
    [12.jpg] => Adam
    [13.jpg] => Justin
    [14.jpg] => Shane
    [15.jpg] => Callum,Grant
    [16.jpg] => Justin
    [17.jpg] => Justin
    [18.jpg] => Austin
    [19.jpg] => Jarod
    [2.jpg] => Tyler
    [20.jpg] => Austin
    [21.jpg] => Tyler
    [22.jpg] => Justin
    [23.jpg] => Tyler
    [24.jpg] => Jarod
    [3.jpg] => Callum
    [4.jpg] => Shane,Callum
    [5.jpg] => Adin
    [6.jpg] => Justin
    [7.jpg] => Callum
    [8.jpg] => Adam
    [9.jpg] => Callum
    [25.jpg] => Jarod
)

im using the galleriffic jquery photo album and in the description area for the picture it shows the keywords in a hyperlink to another page were it shows all the pictures with that keyword but what i want is for when their are multiple keywords i want them to show up as separate hyperlinks

Link to comment
https://forums.phpfreaks.com/topic/260431-array-spliting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.