08.13
php
saved
anthony_
Note
Would like to know how to get the desired result from the given array with Set::combine()
Would like to know how to get the desired result from the given array with Set::combine()
- Given:
- -------------------
- (
- (
- (
- )
- (
- [contestant_id] => 1
- [round_id] => 1
- )
- )
- (
- (
- )
- (
- [contestant_id] => 1
- [round_id] => 2
- )
- )
- )
- Desired Result with Set::combine()
- ------------------------------
- (
- (
- (
- [contestant_id] => 1
- [round_id] => 1
- )
- )
- (
- (
- [contestant_id] => 1
- [round_id] => 2
- )
- )
- )
Parsed in 0.050 seconds, using GeSHi 1.0.7.14