public function uriSafe($spacer = "-")
  {
    $this->string = str_replace($spacer, " ", $this->string);
    $this->string = $this->transliterate();
		$this->string = preg_replace("/(\s|[^A-Za-z0-9\-])+/", $spacer, trim(strtolower($this->string)));
		$this->string = trim($this->string, $spacer);

		return new self($this->string);
  }
public function uriSafe($spacer = "-")
  {
    $this->string = str_replace($spacer, " ", $this->string);
    $this->string = $this->transliterate();
		$this->string = preg_replace("/(\s|[^A-Za-z0-9\-])+/", $spacer, trim(strtolower($this->string)));
		$this->string = trim($this->string, $spacer);

		return new self($this->string);
  }
public function uriSafe ( $ spacer = "-" ) { $ this -> string = str_replace ( $ spacer , " " , $ this -> string ) ; $ this -> string = $ this -> transliterate ( ) ; $ this -> string = preg_replace ( "/(\s|[^A-Za-z0-9\-])+/" , $ spacer , trim ( strtolower ( $ this -> string ) ) ) ; $ this -> string = trim ( $ this -> string , $ spacer ) ; return new self ( $ this -> string ) ; }
Processes the string and replaces all accented UTF-8 characters by unaccented ASCII-7 "equivalents",
whitespaces are replaced by a pre-defined spacer and the string is lowercase.

@param  string $spacer
@return TeamSpeak3_Helper_String
Processes the string and replaces all accented UTF - 8 characters by unaccented ASCII - 7 equivalents whitespaces are replaced by a pre - defined spacer and the string is lowercase .