Function : to_backslash

This function converts front slashes and dots to back slash.

Syntax
  to_backslash($url, $dots)
   
  $url  : supplied url string
  $dots : a boolean value of true allows dots to be converted also.
   
                  
Sample 1
  $text = to_backslash('some/url.foo'); 

  var_dump( $text ); // some\url.foo  
                  
Sample 2
  $text = to_backslash('some/url.foo', true); 

  var_dump( $text ); // some\url\foo  
                  
To convert to frontslash see to_frontslash documentation.