Welcome Guest, Not a member yet? Register   Sign In
Undefined offset
#4

[eluser]bhbutter123[/eluser]
does in_array() work, for more detailed information look on php.net/in_array

basically, you would do this:

if(in_array($answer, $array_of_correct_answers){
$correct++;
}
else{
$incorrect++;
}


Messages In This Thread
Undefined offset - by El Forum - 12-13-2009, 12:13 PM
Undefined offset - by El Forum - 12-13-2009, 02:53 PM
Undefined offset - by El Forum - 12-13-2009, 05:21 PM
Undefined offset - by El Forum - 12-13-2009, 06:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB