самими собой?
                  
                  
                  То есть эквивалентна чему-то вроде
                  
                  
                  $escaped_string = ...;
                  
                  
                  $some_unique_ident =  "#unique#ident#dfj3298ijsdneig298#";
                  
                  
                  $result = 
                  
                  
                      str_replace($some_unique_ident, "\\", 
                  
                  
                          str_replace("\\", "", 
                  
                  
                              str_replace("\\\\", $some_unique_ident, 
                  
                  
                                  $escaped_string
                  
                  
                              )
                  
                  
                          )
                  
                  
                      );
                  
                  
                  ?
                  
                  
                
Не понятно зачем тебе переменная $some_uniqie_ident
Обсуждают сегодня