YoungNate_Black_coder Posted June 25, 2011 Share Posted June 25, 2011 ok, so i am making this ball python breeding game , and i need a little help im about 60% done with the site and i hit the biggest wall of all, heres what i need help with: ok, so i have a form that has two select lists in it male and female, there options are an loop of mysql data for each (male,female) now the problem i have i want the game to be realistic and there some physics, genetics ,and a whirlwind of things that come into play with realistic ball python breeding..... just to name a few: ("If you have any help to offer with any of the following questions thanks alot!") questions: say i have a long array of "male morphs" and i wanna check for a value in that very array? how do i check for a value in an array where the value is a varible? percentage functions ....."just courius"! Link to comment https://forums.phpfreaks.com/topic/240362-help-with-a-few-arrays-warning-long-code/ Share on other sites More sharing options...
WebStyles Posted June 25, 2011 Share Posted June 25, 2011 I cannot even begin to picture what a 'ball python breeding game' might be. You say you're done 60% of this, with genetics, physics, etc... but you have no idea how to check if an array contains a certain value? how about in_array(); Even though I have no idea what you're actually asking. Link to comment https://forums.phpfreaks.com/topic/240362-help-with-a-few-arrays-warning-long-code/#findComment-1234707 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.