Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array1 = {"remarks"=>"remarks-1", "remarksbox"=>"hello"},{"remarks"=>"remarks-2", "remarksbox"=>"hello1"},
- {"remarks"=>"remarks 3", "remarksbox"=>"hello2"},{"remarks"=>"remarks 4", "remarksbox"=>"hello1"}
- require an output like this
- array2 = {"remarks"=>"remarks-1", "remarksbox"=>"hello", "remarks"=>"remarks-2", "remarksbox"=>"hello1",
- "remarks"=>"remarks 3", "remarksbox"=>"hello2", "remarks"=>"remarks 4", "remarksbox"=>"hello1" }
- another array3 consists {"remarks", "remarksbox"}
- I need to match the values in array3 to array1, so I can get the values pointed by the keys
- array3 is an array of keys
- array is an array of {key1->value1, key2->value2}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement