thomascube
2007-11-25 d5342aabcfeddb959cc286befe6de5bf35fe9d76
program/include/main.inc
@@ -1279,6 +1279,14 @@
    return $value;
  }
/**
 * Remove all non-ascii and non-word chars
 * except . and -
 */
function asciiwords($str)
{
  return preg_replace('/[^a-z0-9.-_]/i', '', $str);
}
/**
 * Remove single and double quotes from given string