Question Regarding Event Members

Hello friends,

I need some help. I need to find out all the members email address who had joined that particular event.

I can get the event id with the following code

$event_id = get_input('event_id',0);

$event = get_entity($event_id);


I need to get the relationship of event with the users information.


Please guide me