- sha1: documentation ( source)
- trim: documentation ( source)
- strtolower: documentation ( source)
- printf: documentation ( source)
- md5: documentation ( source)
<?php
$emails = array("tcely", "cely@iqnection.com", "cely@tenable.com", "Chris.Ely@gmail.com", "tcely@users.noreply.github.com");
foreach ($emails as $k => $email) {
$md5 = md5( strtolower( trim( $email ) ) );
$sha1 = sha1( strtolower( trim( $email ) ) );
printf('email: %-30s'."=>\n");
printf("\t".'https://identicons.github.com/%s.png'."\n", $email, $md5);
printf("\t".'https://identicons.github.com/%s.png'."\n", $email, $sha1);
}