equal
deleted
inserted
replaced
33 /** |
33 /** |
34 * Constructor. |
34 * Constructor. |
35 * @param array Optional. An initial list of words, just a plain old array. |
35 * @param array Optional. An initial list of words, just a plain old array. |
36 */ |
36 */ |
37 |
37 |
38 function __construct($words) |
38 function __construct($words = array()) |
39 { |
39 { |
40 if ( count($words) > 0 ) |
40 if ( count($words) > 0 ) |
41 { |
41 { |
42 foreach ( $words as $word ) |
42 foreach ( $words as $word ) |
43 $this->add_word($word); |
43 $this->add_word($word); |