Hi,
I have an array and I want to check if the student id exists in it or not without looping the array.
I tried in_array
and array_key_exists
but they didn't work.
If 001122334 exist in array below then echo exist.
Thanks in advnace
Array
(
[0] => Array
(
[StudentID] => 123456789
)
[1] => Array
(
[StudentID] => 001122334
)
[2] => Array
(
[StudentID] => 010203040
)
[3] => Array
(
[StudentID] => 987654321
)
}