Php Create New Array From Array To Hashmap Internal Working