Asterisk Php AMI events in array?

How to store the events of asterisk (remotely)Php AMI in array ? i wanna see that how much developer will give the best method for this ???

Are you the same user as @Asteriskabhi or working on the same project? If so please don’t create tons of threads about the same kind of thing.

No but we are working on same project but task is also differ.He is senior.