You can use the str_replace () PHP function to search and replace within a string. Here is an example of how you would use it to strip out vowels:
$vowels = array("a", "e", "i", "o", "u");
$no = str_replace($vowels, "", "My name is Joe Smith");
Do you have a job interview coming up for a technical position, as a PHP programmer? Or are you interested in having one in the future? Have a look at these technical interview tips.
Copyleft software is a form of open source software that requires all future deviations of the work be released under the same license. So, if you release it for free you can ensure that all future versions of it are also free. Read More.
The substr () function is used to return a portion of a string. You set the starting point, and how many characters you want it to return. It then gives you back just that portion of the string.