$exhale = FALSE;
while($exhale == FALSE) {
foreach(findAMan() as $man) {
if(
$man->married == FALSE &&
$man->employed == TRUE &&
$man->sexualPerformance > 5 &&
$man->residence != 'mothers basement' &&
$man->good == TRUE
) {
$exhale = TRUE;
}
}
function findAMan() {
$men = array();
$sourcesOfMen = array('club', 'church', 'family friend', 'former lover', 'coworker');
foreach($sourcesOfMen as $source) {
$men += $source['available_men'];
}
return $men;
}
while($exhale == FALSE) {
foreach(findAMan() as $man) {
if(
$man->married == FALSE &&
$man->employed == TRUE &&
$man->sexualPerformance > 5 &&
$man->residence != 'mothers basement' &&
$man->good == TRUE
) {
$exhale = TRUE;
}
}
function findAMan() {
$men = array();
$sourcesOfMen = array('club', 'church', 'family friend', 'former lover', 'coworker');
foreach($sourcesOfMen as $source) {
$men += $source['available_men'];
}
return $men;
}