Skip to content

Instantly share code, notes, and snippets.

@ChrisMorrisOrg
Created February 7, 2013 03:10
Show Gist options
  • Save ChrisMorrisOrg/4728085 to your computer and use it in GitHub Desktop.
Save ChrisMorrisOrg/4728085 to your computer and use it in GitHub Desktop.
Because loops are fun.
<?php
function trialphangle(){
$characters = "abcdefghiklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890+_)(*&^%$#@!~=-`|}{\":?><\][';/.,";
$len = 2;
for($i = 0; $i < $len; $i++){
for($j = 0; $j < strlen($characters); $j++){
print substr($characters, $j, $j+2)."\n";
}
}
}
trialphangle();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment