Jump to content

str_replace (replacing a "·")


beezza

Recommended Posts

$output = str_replace("· Cell: [Cell] ", "", $output) ;

 

This doesnt seem to work, does anyone know what im doing wrong. I am trying to replace "· Cell: [Cell] " (from the bullitin to the ]" with nothing. In otherwords:

 

if($cell_phone == "")

{

$output = str_replace("· Cell: [Cell] ", "", $output) ;

}

else

{

$output = str_replace("[Cell]", $cell_phone, $output) ;

            }

 

 

if u dont understand what im asking let me know ill try and word it another way.

Link to comment
https://forums.phpfreaks.com/topic/111166-str_replace-replacing-a-%C2%B7/
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.