I dont know what in $arrIds is. I tried it, but got weird values for min and max then...