Is there an easier way of achieving this:
Its essentially the same array, but the key needs to be replaced.PHP Code:$d[$_id]['org_name'] = $d['Partner']['org_name'] ;
$d[$_id]['tel'] = $d['Partner']['tel'] ;
.. etc
Imagine its part of a loop of 'Partners' which need to be brought into a single multi-array, and has x number of entries, it just hurts my eyes to look at lines like that - and it makes it makes my code horribly brittle.
Any ideas?






Bookmarks