spynode Posted June 29, 2004 Report Share 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 ? Link to comment Share on other sites More sharing options...
Venom Posted June 29, 2004 Report Share Posted June 29, 2004 preg_replace('/'.$str.'/im','<b>'.$str.'</b>',$text), lai mani parauj! Link to comment Share on other sites More sharing options...
spynode Posted June 29, 2004 Author Report Share Posted June 29, 2004 nu jaa, bet tad visi simboli paliek lower case. kautgan this works for me fine :) tnx Link to comment Share on other sites More sharing options...
Venom Posted June 29, 2004 Report Share Posted June 29, 2004 Lowercase? Pamēģini šito: preg_replace('/('.$str.')/im','<b>\\1</b>',$text); Link to comment Share on other sites More sharing options...
Recommended Posts