Since the stripos-function is PHP5-only, the function below could give PHP4-users the same functionallity:if (!function_exists("stripos")) {
function stripos($str,$needle) {
return strpos(strtolower($str),strtolower($needle));
}
}$strTest = "The brown fox jumped over the Fence";
echo stripos($strTest, 'fence');//30 ?>
Blogger templates
Blogger news
Blogroll
Archives
-
▼
2011
(212)
-
▼
November
(18)
- preg_match() or search a string / substring in php
- Que se puede hacer con PHP?
- Use custom slug manipulation for sluggable field i...
- PHP comparison operators
- Downloading as csv/excel file in php using headers
- PHP function stripos is not working in PHP 4
- Avoid using Large String Concatenation
- Installing PNP
- Php For Statement
- PHP Ming
- MySQL DATE TIME Format Conversion
- Force SSL in Apache
- section\tmpl
- select in php with mysql
- Excellent codeigniter tutorials for biginners and ...
- using windows command line smartly
- Auto Resize image With PHP
- The $_POST Function
-
▼
November
(18)