Skip to content
Advertisement

How to get values of a multidimensional array with a string

I have an multidimensional array

JavaScript

Now I want to get “text1” but I only know it is $array[1] but not the name “searched1”. Is there a possibility to get the searched parameter?

Advertisement

Answer

With reset() you get the first element.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement