Hi,
Im not sure im doing this right, im rather new, so if somone can help me id appreciate it.
Im taking a two dimensional array adding up the vaules and then echoing them back. So basically heres what my code looks like.
$wizard_ST = array(
"will" => array("0", "2", "3"),
"ref" => array("0", "2", "3"),
"fort" => array("0", "2", "3")
);
$rogue_ST = array(
"will" => array("0", "0", "1"),
"ref" => array("0", "2", "3"),
"fort" => array("0", "2", "3")
);
$wizard_will_saving_throw = $wizard_ST[0][$wizard_level];
$rogue_will_saving_throw = $rogue_ST[0][$rogue_level];
$will_saving_throw = $wizard_will_saving_throw+$rogue_will_saving_throw;
echo("$will_saving_throw");
In this case I dont get a result. So i tried an experiement and tried, echo($rogue_ST[0][$rogue_level]);
What was returned was the rogue_level in brackets so "[4]". What am i doing wrong?
Thanks,
Kenneth Donaldson