note 44577 deleted from language.variables.variable by tomsommer

From: Date: Tue, 10 Aug 2004 05:48:39 +0000
Subject: note 44577 deleted from language.variables.variable by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74385@lists.php.net to get a copy of this message
Note Submitter: dhouse@109Studios.com ---- // Solution: $num_cart_items = 3; $item_number1 = "I'm Item #1\n"; $item_number2 = "I'm Item #2\n"; $item_number3 = "I'm Item #3\n"; for ($i=1; $i<=$num_cart_items; $i+=1) { $temp = "item_number$i"; $value = $$temp; echo $value; } // Output: I'm Item #1 I'm Item #2 I'm Item #3 - Damien House http://www.109Studios.com

« previous php.notes (#74385) next »