src/Phrase.php
public function getSnakeCase(string $glue = '-')
    {
        $words = [];

        foreach ($this->words as $word) {
            $words[] = $word->getLowerCase();
        }

        return implode($glue, $words);
    }
public function getSnakeCase(string $glue = '-')
    {
        $words = [];

        foreach ($this->words as $word) {
            $words[] = $word->getLowerCase();
        }

        return implode($glue, $words);
    }
public function getSnakeCase ( string $ glue = '-' ) { $ words = [ ] ; foreach ( $ this -> words as $ word ) { $ words [ ] = $ word -> getLowerCase ( ) ; } return implode ( $ glue , $ words ) ; }
Returns the snake case version with the glue provided.

@param string $glue The glue between words. Common examples would be '-', '_' and ' '.
@return string The snake case version of the phrase.
Returns the snake case version with the glue provided .