beezza Posted June 20, 2008 Share Posted June 20, 2008 $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 More sharing options...
beezza Posted June 20, 2008 Author Share Posted June 20, 2008 i answered my own question. I forgot that i need to search for the RTF code of a bulliten. \'b7 Cell: [Cell] That is what needs to be replaced. Link to comment https://forums.phpfreaks.com/topic/111166-str_replace-replacing-a-%C2%B7/#findComment-570548 Share on other sites More sharing options...
Barand Posted June 20, 2008 Share Posted June 20, 2008 Mark it as "solved" then. Link to comment https://forums.phpfreaks.com/topic/111166-str_replace-replacing-a-%C2%B7/#findComment-570559 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.