You could explode on the comma, so:
Fire Resistance:10%, Water Resistance:20%, Dark Magic Resistance: 0%, Earth Resistance:-10%
$mydataarray = explode(',', 'Fire Resistance:10%, Water Resistance:20%, Dark Magic Resistance: 0%, Earth Resistance:-10%');
And $mydataarray would be split into large pieces - but still doesn't give you what you want.
What you'll need to do now is loop each array item and split it on the colon:
$data = array();
for($a = 0; $a < count($mydataarray); $a++)
{
$temparray = explode(':', $mydataarray[$a]);
$data[trim($temparray[0])] = trim($temparray[1]);
} // end for($a = 0; $a < count($mydataarray); $a++)
Now $data will contain an array indexed using the terms like 'Fire Resistance' so you should be able to do:
echo $data['Fire Resistance'] and the output should be 10%.
I think this comes close to what you're looking for. If anything, the parsing should get you started and if you need the variables to be more specific, you could get crazy with if() or switch().