PHP - Splitting array (name and value) into different strings?

mido_md

New Member
I have the following array:\[code\]Array( [name] => hejsan [lastname] => du)\[/code\]I'm trying to loop through every item in the array, and store the name of the item in the array, and the value of that item, in two seperate strings.Something like this:\[code\]$name1 = "name";$value1 = "hejsan";$name2 = "lastname";$value2 = "du";\[/code\]Is that possible?Thanks in advance!
 
Back
Top