can help me check anything wrong with the php script below

<?php function dofoo() { $People = array(array(5, 1.25 , 15), array(5, 0.75 , 25), array(5, 1.15 , 7) ); return $People; } function Produce($People, $exampleArray, $example) { $exampleArray = array(); $example = array(); $People=dofoo(); for($i = 0; $i < 3; $i++) { if ($People[$i]!=$People[0]){ $it=0; $eq=0; for($j = 0; $j < 4; $j++){ if($People[$i][$j]<$People[0][$j]){ $it++; } elseif($People[$i][$j]==$People[0][$j]){ $eq++; } } if(($it+$eq==4)&&($it>0)){ return $exampleArray; } } } return $example; } $foo = Produce($People,$exampleArray, $example ); print $Example; print $People; print $example; ?>

What exactly do you need to check? Are you getting any error messages?

Sponsor our Newsletter | Privacy Policy | Terms of Service