public function dasherize() 
    {
        $this->data = preg_replace("/[^a-zA-Z0-9_\-\s]/i", '', $this->data);
        $this->data = str_replace(' ', '-', trim($this->data));
        $this->data = preg_replace("/-+/i", '-', $this->data);
        $this->data = strtolower($this->data);

        return $this;
    }
public function dasherize() 
    {
        $this->data = preg_replace("/[^a-zA-Z0-9_\-\s]/i", '', $this->data);
        $this->data = str_replace(' ', '-', trim($this->data));
        $this->data = preg_replace("/-+/i", '-', $this->data);
        $this->data = strtolower($this->data);

        return $this;
    }
public function dasherize ( ) { $ this -> data = preg_replace ( "/[^a-zA-Z0-9_\-\s]/i" , '' , $ this -> data ) ; $ this -> data = str_replace ( ' ' , '-' , trim ( $ this -> data ) ) ; $ this -> data = preg_replace ( "/-+/i" , '-' , $ this -> data ) ; $ this -> data = strtolower ( $ this -> data ) ; return $ this ; }
Transforms a string with caps and
space to a lower case dash string

@return Eden_String_Index
Transforms a string with caps and space to a lower case dash string