let me say I have an array like this:
$testarray = array('abc'=>'123',
'def'=>'456',
'ghi'=>'789'
);
For an operation I need the single values of the array in variables. I would like to loop through the array and have something like this:
new cmdOption("cn", $arrayvaluefirstcolumn, "User")
new cmdOption("mod", "text=".$arraysecondcolumn, "expression")
So, I would like to have 'abc' as $arrayvaluefirstcolumn and '123' as $arrayvaluesecondcolumn in the first loop. And in the second loop, I would like to have 'def' as $arrayvaluefirstcolum and '456' as $arrayvaluesecondcolumn and so on.
I am not sure how to loop through the array to get the desired result and store it in the variables. Is this possible? Can you give me some advice?