Profile
Achievement
lemcoe9's Recent SnippetsTagged array
- All /
« Prev 1 Next »
Takes the collection 'david' and gives a unique array of the keys used.
0
932
posted 13 years ago by lemcoe9
There seems to be no easy way to insert a key and value at the beginning of an array, as array_unset does not allow you to specify a key. This is not a very efficient way to do it, but it works.
Pretend the array is currently: array("a"=>"b", "c"...
0
1214
posted 13 years ago by lemcoe9