[PHP] case-insensitive str_replace

2002-05-02 Thread Reuben D Budiardja
Hi, I am in need of a case-insensitive str_replace. I've tried the search the archive and documentation, but the mostly suggested thing is to use eregi_replace. But this does not really solve the problem for me since the argument for eregi_replace can't be an array. The feature that I use in

[PHP] Case insensitive str_replace

2002-01-10 Thread Valentin V. Petruchek
Hello list. Need you help. My aim is to str_replace ($word,b$word/b,$str). But: i want str_replace not to differ uppers and lowers: Rector = bRec/btor after str_replace ('rec',brec/b,Rector) in other words. It seemes to me ereg can help, but i'm still not good at it. Help please Valentin