vowels
vowels
Disemvoweling PHP Function
Tue, 04/07/2009 - 09:01 | by philipnorton42Disemvoweling is a technique used on blogs and forums to censor any post or comment that contains spam or other unwanted text. It involves simply removing the vowels from the text so that it is almost, but not entirely, unreadable.
Use the following function to disemvowel a string of text.
function disemvowel($string)
{
return str_replace(array('a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'), '', $string);
}
As an example, the first sentence on this post:
Generate Password Function In PHP
Mon, 11/17/2008 - 12:02 | by philipnorton42I have talked about generating random passwords before. Although that function generated some nice passwords, they perhaps aren't as unique as they ought to be.
This function, take from Webtoolkit creates passwords of different length with varying levels of complexity.