0
I made a virtual keyboard that generates the numbers and returns in json, for example:
[0] => Array
(
[a] => 1
[b] => 5
)
[1] => Array
(
[a] => 6
[b] => 7
)
[2] => Array
(
[a] => 4
[b] => 9
)
[3] => Array
(
[a] => 8
[b] => 2
)
[4] => Array
(
[a] => 3
[b] => 0
)
The above code generates the numbers in the following format: A or B For example: Press this button if your password is between A or B.
And along with this code, there is a variable that defines the person’s password, in which case the password is 011232. The values that the virtual keyboard gives are random.
I need a code that picks the values between the 5 buttons and check button by button, if the variable’s password equals one of the two values (A and B)
Thanks in advance.
Note that the code quoted in the question nay is JSON, but a literal of array PHP. Also, your question is not clear. You want the index sequence of array keyboard principal that corresponds to what a user would press when using the keyboard to enter the password?
– Wtrmute