Re: Pho function return
Posted: Tue May 21, 2013 5:44 pm
i am not sure what exactly you are going for here but to return a function in php
$result will have the roll + the players attack
Hope that helps
Code: Select all
$result = ResolveBattle($playerinfo3);
function ResolveBattle($playerinfo3)
{
$roll = $playerinfo3['attack'] + rand(1,20);
return $roll
}
Hope that helps