includes/tagcloud.php
changeset 229 b2f985e4cef3
parent 165 d53cc29308f4
child 261 5f1cd51bf1be
equal deleted inserted replaced
228:7846d45bd250 229:b2f985e4cef3
    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);