Skip to content

Instantly share code, notes, and snippets.

@bilalucar bilalucar/PHPbot
Created Nov 12, 2017

Embed
What would you like to do?
PHPbot
<?php
$fruits = array("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple");
ksort($fruits);
foreach ($fruits as $key => $val) {
echo "$key = $val\n";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.