The code example do not work at all,
first, you can not directly declare one variable with $ on name
second, this is not one array, missing all ; between items.
the correct code, regardless the final purpose, is
However, both of the array elements (item and value) are customizable, so I wanted to find a way where I could reference the “first” element’s “value” as both “item” and “value” are unknown to me before anyone changes the items in their own implementation (i.e. position 0,1) hence me trying something like ->0->1
Would there be any way to reference the values if both item and value are unknown? I’d also like to be able to reference “item1” and “value1” separately for different purposes.