Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PHP sorting algorithm
<?php
$input = file("php://stdin");
sort($input);
file_put_contents(end($argv), join($input));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment