final protected function arrayUnmap($array, $keyLbl='id', $valueLbl='title') {
        $result=array();
        
        foreach($array as $key=>$value) {
            $result[]=array(
                            $keyLbl=>$key,
                            $valueLbl=>$value
                        );
        }
        
        
        //Return the resulting array
        return $result;
    }
final protected function arrayUnmap($array, $keyLbl='id', $valueLbl='title') {
        $result=array();
        
        foreach($array as $key=>$value) {
            $result[]=array(
                            $keyLbl=>$key,
                            $valueLbl=>$value
                        );
        }
        
        
        //Return the resulting array
        return $result;
    }
final protected function arrayUnmap ( $ array , $ keyLbl = 'id' , $ valueLbl = 'title' ) { $ result = array ( ) ; foreach ( $ array as $ key => $ value ) { $ result [ ] = array ( $ keyLbl => $ key , $ valueLbl => $ value ) ; } //Return the resulting array return $ result ; }
Converts an array where the key and value should be mapped to a nested array
@param {array} $array Source Array
@param {string} $keyLbl Array's Key mapping name
@param {string} $valueLbl Key's value mapping name
@return {array} Unmapped array
Converts an array where the key and value should be mapped to a nested array