Good time to all, please, tell me who is not lazy, for example ...
If BRIEF: there is an array of data:
01.09.2016|10:48:31|192.168.0.1|Cвязь с сервером прервана. 01.09.2016|10:48:32|192.168.0.1|Cвязь с сервером прервана. 01.09.2016|10:48:36|192.168.0.1|Cвязь с сервером прервана. 01.09.2016|16:41:34|192.168.0.2|Cвязь с сервером прервана. 01.09.2016|18:47:06|192.168.0.2|Cвязь с сервером прервана. Explod by array fields and we get the IP set below by the $fields[2] code, we get the set of IP addresses.
QUESTION: how to find out the number of all the same IP, how many 192.168.0.1, and how many 192.168.0.2 ???
As far as I can imagine, then: array_count_values() , how to implement?