decypher Posted July 21, 2007 Share Posted July 21, 2007 //count the dice $numvals= arrays(6); for ($theval = 1; $theval <= 6; $theval++) { for ($dienum = 0; $dienum < 5; $dienum++) { if ($die[$dienum] == $theval) { $numvals[$theval]++; } // end if } // end dienum for loop } // end theval for loop Error: 'Fatal error: Call to undefined function arrays() in C:\Program Files\Abyss Web Server\htdocs\testt.php on line 100' line 100 = '$numvals= arrays(6);' Quote Link to comment Share on other sites More sharing options...
jitesh Posted July 21, 2007 Share Posted July 21, 2007 $numvals= array(6); Quote Link to comment Share on other sites More sharing options...
decypher Posted July 21, 2007 Author Share Posted July 21, 2007 thnx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.