S
S
Salim_Gareev2017-11-19 16:30:15
Iron
Salim_Gareev, 2017-11-19 16:30:15

How to get the hash of an array?

Good afternoon.
At the beginning of the script, an array is created (always different). In the end, you need to determine whether at least one value in the array has changed. There is an option to create a copy of the array and compare at the end, there is an option to collect all the values ​​\u200b\u200band convert to a hash and compare at the end.
But maybe there are other ways?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Radjah, 2019-08-29
@Radjah

As an option, a broken cable through which it is impossible to read the EDID from the monitor.
Next is the video card firmware bug. I encountered this on the GTX970 from ASUS. After updating the firmware, the problem disappeared.

A
Andrey Ermachenok, 2019-08-30
@eapeap

Are there other interfaces for Vidyuhi and Monitor?
What happens over HDMI, say?
Stupid question - is the vidyuhi driver installed?
It was like this - I connect 2 monitors via DP to one vidyuhi - one is normal, on the second - stripes and flickering. Replacing the DP cable removed the problem. Connecting via a DP-DVI adapter and a DVI cable is also OK. That is, at 4 workplaces, two monitors turned on immediately by DP, at 4 more - with dancing with a tambourine.
At the same time, buggy DP cables worked without problems with another computer and monitor.

A
Alexander Talalaev, 2017-11-19
@neuotq

There is a function array_diff , it compares two arrays and returns the array with the difference. Well, yes, for this you will need to save the original array.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question