Monthly Archive: August 2010
We’re going to use several string functions together. Let’s take the string testing testing Username:Michele Davis and retrieve only the name. Using several functions together to extract a portion of a string This Code...
To detect whether a string is part of another string, use strstr. This function takes two parameters: the string to search through and the string to search for. It is not case sensitive; if...
PHP provides functionality for changing the case of a string to all uppercase, all lowercase, or the first letter of a word to uppercase. The commands are strtoupper, strtolower, and ucwords, respectively. Using the...
The PHP function strlen can be used to find out how many characters are in a string. This is very useful for validating that there’s data in a string, and that a string isn’t...
The substring functions provide a way to extract a portion of a string. All that’s needed is the string to work with, the position to start from, and how many characters to extract. Use...
You can update your twitter account update automatically when you update your wordpress blog. It is possible with the help of Tweet-this Plugin. This plugin can also tweet new blog posts automatically, if you...