This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// I like to verify if a function exists just because anyone (including yourself) | |
// could screw up the file accidently so always verify, so my functions are wrapped | |
// inside a if(function_exists('function_name')) condition | |
// Replace wierd non-URL-safe characters | |
if(!function_exists('dw_replaceChars')) { | |
function dw_replaceChars($str) { | |
// List all wierd characters and match with what we want |