Re: Newbie: why do I get this error?

From: Date: Mon, 26 Feb 2001 11:41:05 +0000
Subject: Re: Newbie: why do I get this error?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41667@lists.php.net to get a copy of this message
> > Hi all, > > I changed > > > function HTMLTable() { > > $attributes[] = array("border", "0"); > > $attributes[] = array("cellpadding", "0"); > > // and some other things > > } > > to > > $attributes = array(array("border", "0"), > array("cellpadding", "0")); I'm not sure, but is this what you want? $attributes = array(array('border'=>0),array('cellpadding'=>0)); or $attributes[] = array('border'=>0); $attributes[] = array('cellpadding'=>0); -- Yasuo Ohgaki

« previous php.general (#41667) next »