Combine 2 arrays in PHPThanks but what do you mean by 'assign it with'?? This is the bit where I am getting lost. A foreach loop is no problem but just not sure how to actually add them together, or 'assign' the single elements as you said.

Feb
18

comment

Combine 2 arrays in PHPI figured a foreach loop would be the way to go. I have looked at array_merge, array_merge_recursive, array_push, array_combine but can't work them out and which one I would need. A push in the right direction would be great!

WordPress save_post not workingSorry, the pp(); function is my shorthand function for print_r. So when I print out the variables, it is all correct and the function saves the post meta. But when I don't print it out it doesn't save.