URLify::remove_words PHP 메소드

remove_words() 공개 정적인 메소드

Append words to the remove list. Accepts either single words or an array of words.
public static remove_words ( $words )
    public static function remove_words($words)
    {
        $words = is_array($words) ? $words : array($words);
        self::$remove_list = array_merge(self::$remove_list, $words);
    }

Usage Example

예제 #1
0
파일: URLifyTest.php 프로젝트: baardev/lbtb
 function test_remove_words()
 {
     $this->assertEquals('foo-bar', URLify::filter('foo bar'));
     URLify::remove_words(array('foo', 'bar'));
     $this->assertEquals('', URLify::filter('foo bar'));
 }
All Usage Examples Of URLify::remove_words