Skip to content

Instantly share code, notes, and snippets.

View willhenderson's full-sized avatar

Will Henderson willhenderson

View GitHub Profile

Keybase proof

I hereby claim:

  • I am willhenderson on github.
  • I am willh (https://keybase.io/willh) on keybase.
  • I have a public key whose fingerprint is 53C1 02AC 828C FC4B E838 6A77 D370 CBA7 5116 3B66

To claim this, I am signing this object:

@willhenderson
willhenderson / slugger.php
Last active November 8, 2017 21:06
String goes in, url slug comes out. It's not rocket science.
<?php
/*
slugger.php
by Will Henderson
Released into the public domain with no warranties and no restrictions.
*/
function slugger($string){
// trim whitespace