Jump to content

str_replace problem


squiblo

Recommended Posts

the following does not work

 

$old = "*(#01)*";
$new = "\";

$message = str_replace($old, $new, $message);

 

thanks

 

Here is the logic of it:

 

str_replace("replace this", "with this", "in this string");

 

$message shouldn't be in your str_replace. I'm not sure what you're trying to do though.

Link to comment
https://forums.phpfreaks.com/topic/199252-str_replace-problem/#findComment-1045772
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.