Re: array() stuff

From: Date: Thu, 12 Apr 2001 02:11:56 +0000
Subject: Re: array() stuff
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48230@lists.php.net to get a copy of this message
In article <000501c0c2f5$185e8e80$0201a8c0@atomic.rocketbox.dhs.org>, kidlinux@rocketbox.dhs.org ("Duke") wrote: > I'm trying to create the following array: > > $host_info = array( > "hostname" => "localhost" > "log" => "rocketbox_db.log" > "username" => $username > "password" => $password > "database" => "rocketbox" > "table" => $table > ); > > however when I try and access the document, I get the following error: > > Parse error: parse error, expecting `')'' in > /usr/home/kidlinux/htdocs/rocketbox/admin/index.php on line 26 Your array elements need to be delimited by commas: $host_info = array( "hostname" => "localhost", "log" => "rocketbox_db.log", "username" => $username, "password" => $password, "database" => "rocketbox", "table" => $table ); -- CC

« previous php.general (#48230) next »