Function : to_frontslash

This function converts back slashes and dots to front slash.

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

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

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