PHP search array and add content on position where id's are equal
问题 I have 2 assoc. Arrays which have the same structure, but only one ID is identical. I need to add content to the MainArray from the IncludeArray everytime the specific ID is identical. Here are a sample of the Arrays (MainArray could hold up to 100 or more items, the sample contains only a portion of the real content): $MainArray = Array ( [0] => Array ( [item_id] => 1 [name] => Test1 [helptxt] => Helptext for item-id 1. [type_id] => 1 #could be the same for many other items!! ) [1] => Array