I am trying to loop through an array to take certain values and set them equal to a variable.
Here is my var_dump on my $_POST array
array(5) {
["voter"]=> string(2) "22"
[1]=> string(1) "1"
[2]=> string(1) "2"
[3]=> string(1) "3"
["vote"]=> string(4)
)
I want the keys out of the key => value pair from the 2nd key value pair on out and then set that to a variable. How would I achieve this?
So from [1] -> string(1) "1" on out..Ignore the first pair.
voterand capture the rest?$second_value = $your_array[1];?