includes/tagcloud.php
changeset 304 e2cb5f1432c8
parent 229 97ae8e9d5e29
parent 286 b2f985e4cef3
child 326 ab66d6d1f1f4
equal deleted inserted replaced
280:dc08c70ca550 304:e2cb5f1432c8
    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);