Jump to content

Replace character not working in ver 4


oceans

Recommended Posts

Dear people,

 

I did this

 

define

function ConvertSingleBackSlash($string)
{
return str_replace("\\", "-", $string);
}

 

later call

 

$Input[$i]=filter_var($Input[$i]=FILTER_CALLBACK,array("options"=>"ConvertSingleBackSlash"));

 

it works fine in ver 5 but not in ver 4, is there a substitue for this.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/56655-replace-character-not-working-in-ver-4/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.