includes/tagcloud.php
changeset 286 b2f985e4cef3
parent 166 d53cc29308f4
child 304 e2cb5f1432c8
child 322 5f1cd51bf1be
equal deleted inserted replaced
285:7846d45bd250 286: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);