Created
August 12, 2015 11:28
-
-
Save VictorFursa/e303a624729967d84af3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for($i = 0; $i < count($arraaa);$i++){ | |
$buffer = 0; | |
if(isset($arraaa [$i+1])){ | |
if($arraaa[$i] > $arraaa[$i+1]) { | |
$buffer = $arraaa[$i+1]; | |
$arraaa[$i+1] = $arraaa[$i]; | |
$arraaa[$i] = $buffer; | |
} | |
} | |
} | |
var_dump($arraaa); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment