figured out how to parse mongo cursor in PHP