...
/Challenge: Swap Keys with Values of an Associative Array
Challenge: Swap Keys with Values of an Associative Array
Here is a coding challenge to test your knowledge of foreach loop and associative arrays.
We'll cover the following...
We know that associative arrays provide a map from keys to values. This mapping is unidirectional: values are accessed by keys but not the other way around.