a problem while using replace functions.. please HELP
Hi
this is my first post
I hope finaly some one will answer my question
I'm writing a code that replace some chars with others
the question is: can I give ( str_replace ) some thing to tell it to ignore some differences betwen the two strings, I meen something like special chars..??
I found a function which ignores differences in spacing (like tab, carriage return, line feed, etc.)
But I need to ignore more differences such as ( special cahrs I use, they are almost non english letters )
please some one tell me how to do that or how to make the function bellow Ignore and chars I want
Thanks a lot every body
PHP Code:
<?php
function str_rep($srcfor,$chwith,$mystr)
{
if(strlen($mystr) == 0)
return "";