how to traverse through php multidimensional associative array but only search the first value of every array

I had a task to create a search box that shows suggestions after users search for any name. and code should traverse through the name in every array in the multidimensional associative array but it should look for name only which is the first key in every array.

image for reference

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum