I'm writing this up from memory, so errors may appear.
- Go to http://www.startssl.com/
- Click on 'Control Panel'
- Click 'Express Lane'
<?php | |
function slugify($str) | |
{ | |
$str = htmlentities($str, ENT_NOQUOTES, 'UTF-8'); | |
$str = preg_replace('#&([A-za-z])(?:acute|cedil|circ|grave|orn|ring|slash|th|tilde|uml);#', '\1', $str); | |
$str = preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $str); // pour les ligatures e.g. 'œ' | |
$str = preg_replace('#&[^;]+;#', '', $str); // supprime les autres caractères | |
$str = preg_replace('/[^a-z0-9]+/', '-', strtolower($str)); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I'm writing this up from memory, so errors may appear.
I hereby claim:
To claim this, I am signing this object: