Basically, I need to add several random items from a PHP array to a choice that a user makes from that array. So for example, if the array is:
"kiwi, orange, pineapple, apple, grape, starfruit, kumquat"
and the user picks "pineapple" I want to choose X number of additional fruits from the remaining array items. The key thing is that "pineapple" can't be both the selection and also one of the additional fruits, so it needs to be excluded from the array once it's chosen as the selection.
Selection: pineapple
Your additional fruits: kiwi, grape, orange
NOT Selection: pineapple Your additional fruits: kiwi, pineapple, grape
I'm actually doing this with filenames, not fruits, but it seems easier to describe this way.
I think I can do the random selection part, but I'm not sure how to remove the item that's selected from the given array in PHP. Thanks very much for any suggestions or ideas.