I've rewritten the code to store the array.
It is now stored as "1@@11". That is "Item ID@@Size IDQuantity.
I thought I could use something like this to get the quantity:
if (in_array("$sizes[1]@@$sizes[0]**15",$array_item))
echo "<option value=\"$sizes[0]\">dgdgdfgdf</option>";
But it only returns true if the match is exact. I only want to be able to search for $sizes[1]@@$sizes[0]** and miss of the quantity and then use it to return the quantity.
How do you search for a substring in an array?