Skip to content

Instantly share code, notes, and snippets.

@bilalucar
Created November 12, 2017 12:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bilalucar/9a7507cce07e0a4eba598543f599a730 to your computer and use it in GitHub Desktop.
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