request_method
New Member
- Messages
- 4
- Reaction score
- 1
- Points
- 3
How do I get the key of an array when the array is multidimensional and I only have the value?
Code:
function createTestArray()
{
//our arrays
childArray1 = array(
"val 1",
"val 2"
);
childArray2 = array(
"val 3",
"val 4"
);
self.parentArray = array(
"val 5",
"val 6",
childArray1,
childArray2
);
}
//Now how do I get the key when I only know the value?