$small) { $ans = min($ans, $x - $small); $small = $x; } } if($ans == 10000000) $ans = 0; print($ans); ?>