|
I have a loop where the variable $value is "Defence" the first time and "Attack" the second. Also, I have another variable at the same time $skill['Level'] which is 57 the first time and 65 the second. How do I do this:
$Defence_lvl = $Skill['Level'];
$Attack_lvl = $Skill['Level'];
The only thing is, is that I have to make these variable within the loop, so I have to use a command such as this:
$value_lvl = $Skill['Level']
I'm not sure on the correct syntax for that though or where the quotes are supposed to go or how the best method to do this is.
|