Results 1 to 4 of 4
Apr 27, 2009, 10:52 #1
- Join Date
- Oct 2006
- France, deep rural.
- 17 Post(s)
- 1 Thread(s)
Replacing the first array key, easier way?
Is there an easier way of achieving this:
$d[$_id]['org_name'] = $d['Partner']['org_name'] ;
$d[$_id]['tel'] = $d['Partner']['tel'] ;
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.