Archives For preg_replace

url filtering: #83 filtered flareURL filtering is important: everyone from marketers to search engines loves nice, text-rich URLs. If you want to create keyword-rich URLs based on your dynamic content then you need to clean and filter the source text first. Here is a handy function that will generate text very much like WordPress slugs… You can use this pretty much anywhere. I’ve used it mostly in tagging systems, and in code that creates permalinks based on post titles or taxonomy terms. (more…)