spynode Posted June 29, 2004 Report Posted June 29, 2004 Man nepieciehsama mekleto vardu iezimeshana. Zinu kaa tas notiek ar str_replace, bet man vajag lai tas notiek case insensetive. PHP5 tam ir str_ireplace, bet kaa to panakt vecaakas versijaas ?
Venom Posted June 29, 2004 Report Posted June 29, 2004 preg_replace('/'.$str.'/im','<b>'.$str.'</b>',$text), lai mani parauj!
spynode Posted June 29, 2004 Author Report Posted June 29, 2004 nu jaa, bet tad visi simboli paliek lower case. kautgan this works for me fine :) tnx
Venom Posted June 29, 2004 Report Posted June 29, 2004 Lowercase? Pamēģini šito: preg_replace('/('.$str.')/im','<b>\\1</b>',$text);
Recommended Posts