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);' Link to comment https://forums.phpfreaks.com/topic/61084-solved-arrays/ Share on other sites More sharing options...
jitesh Posted July 21, 2007 Share Posted July 21, 2007 $numvals= array(6); Link to comment https://forums.phpfreaks.com/topic/61084-solved-arrays/#findComment-303999 Share on other sites More sharing options...
decypher Posted July 21, 2007 Author Share Posted July 21, 2007 thnx Link to comment https://forums.phpfreaks.com/topic/61084-solved-arrays/#findComment-304005 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.