Archive for February, 2010
str_rot13()
Performs ROT13 encoding on a string and returns the encoded string. ROT13 shifts an alpha character 13 values over, rotating through the alphabet. “A” becomes “N”, “e” becomes “r”, etc. Only affects A-Z and a-z.
phpWomen
This online community’s aim is to encourage the women in the php world. Started in October 2006 and going strong, phpWomen is a great network for support, knowledge, and camaraderie.
count_chars()
Get information about the characters in a string (or the characters *not* in a string). Five different settings: array of character frequency | array of character frequency > 0 | array of character frequency == 0 | string of unique characters | string of characters not used.
levenshtein()
Calculates the Levenshtein distance between two strings. That is, it gives you the minimum number of characters needed to insert, replace, or delete in order to have the first string be the second string.
Optionally, you can put a “cost” to each of the three changes making a replace more expensive for example.
trim()
Returns to you a string with whitespace removed from the beginning and end of the string passed to it. You can also pass in a list of characters for it to remove instead.
str_shuffle()
Returns a new string containing all of the characters of the string passed but in a random order. Similar to what shuffle() does to an array except here, the original string is unaffected.
nl2br()
Inserts the XHTML tag
before each line break in a string and returns you this new string.The new line characters remain in the string.
phpcredits()
Show the credits for the developers of the PHP version running on your machine. Core developers, module extension authors, documentation team, etc.
phpversion()
Get the version number of PHP running on the machine. Or pass in an extension name and get the version number of that extension.
ini_get_all()
This function gives you an array of all the configuration options and their values along with their access levels.
