Hmongkeysauce
Senior member
lets say a i have an array of something like:
$key = array("a", "b", "c", "d");
now i want to create a new array using the values in the above array as keys. for example, the new array would be:
array( a => X1, b => X2, c => X3, d => X4)
where X# would be any value. how would i go about doing this using a loop?
$key = array("a", "b", "c", "d");
now i want to create a new array using the values in the above array as keys. for example, the new array would be:
array( a => X1, b => X2, c => X3, d => X4)
where X# would be any value. how would i go about doing this using a loop?