Function to return multiselected items as an array

Simple function added, which returns selected items in Multiselect menu as an array.