I have an array like:
Array
(
[item1] => value1
[item2] => value
[item3] => value3
)
And I want to extract all the names and values to variables. But say, I don't know the names of items that the array contains. I wanna generate variables for each array item with the name of this item name in array to make possible of using this variables later. The result should look like this:
item_name1 = item_value1
item_name2 = item_value2
item_name3 = item_value3
Seems the foreach loop should be usefull here.