RE: [PHP] Smarty template question

From: Date: Sun, 29 Sep 2002 01:49:14 +0000
Subject: RE: [PHP] Smarty template question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118030@lists.php.net to get a copy of this message
> http://www.php.net/manual/en/language.types.array.php#language.types.arr > ay.syntax > > > This is done by assigning values to the array while specifying the key > > in brackets. You can also omit the key, add an empty pair of brackets > > ("[]") to the variable-name in that case. > > > $arr[key] = value; > > $arr[] = value; > > // key is either string or nonnegative integer > > // value can be anything > > You really don't have to create $i, it will be created *on the fly*, > works for me. Yes you are correct, sorry that is a hold over from my c++ days. Its just a habit. I figured out my problem, I didn't have my variables "nick & comment" capitalized like they are in the database. Thanks for your help, Matt --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002

« previous php.general (#118030) next »