rockinaway Posted April 2, 2007 Share Posted April 2, 2007 Foreach($mysql_fetch_array as $key => $value) { $bowler_array[‘$value’] = array ( ‘overs’ => ‘0’, ‘runs’ => ‘0’, ‘wickets’ => ‘0’); } How can I use one array value, without using the name and then once their 10 overs are up, how can I move to the next bowler, again without using it’s array name? As I won’t know this… Also how can I select the current array key I am using without referring to it by name? Link to comment https://forums.phpfreaks.com/topic/45239-array-problems/ Share on other sites More sharing options...
MadTechie Posted April 2, 2007 Share Posted April 2, 2007 not sure what your asking, Link to comment https://forums.phpfreaks.com/topic/45239-array-problems/#findComment-219653 Share on other sites More sharing options...
rockinaway Posted April 2, 2007 Author Share Posted April 2, 2007 I think I have figured it, I can do current($bowler_array), next(), and prev() .. but that is jsut for a 1 branched array, what about an array like I have shown.. how would I get the values or update the overs, runs and wicket in the each array, inside the arrays.. Link to comment https://forums.phpfreaks.com/topic/45239-array-problems/#findComment-219732 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.