You are here: Re: str_ireplace « PHP Programming Language « IT news, forums, messages
Re: str_ireplace

Posted by Tobierre on 10/25/05 21:15

Hi why don't you just do the following to get the same result?

$var = strtolower$var); //convert string to lower case
str_ireplace(..., $var);

if you don't want to convert the original string just do

$var = 'SomE STrinG';

$testvar = strtolower($var);
$str_ireplace(..., $testvar);

Tobierre

"windandwaves" <winandwaves@coldmail.com> wrote in message
news:H8X6f.2140$S24.150355@news.xtra.co.nz...
> Does anyone know of a function that works like str_ireplace in PHP < 5?
>
> str_ireplace(a,b,c) replaces a with b in c, just like str_replace, but
> case insensitive.
>
> TIA
>
> - Nicolaas
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация