remove_words() public static method

Append words to the remove list. Accepts either single words or an array of words.
public static remove_words ( $words )
コード例 #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'));
 }
コード例 #2
0
ファイル: URLifyTest.php プロジェクト: MartinStefani/urlify
 function test_remove_words_disable()
 {
     URLify::remove_words(array('foo', 'bar'));
     $this->assertEquals('foo-bar', URLify::filter('foo bar', 60, '', false, false));
 }