Simple Question

From: Date: Mon, 18 Sep 2000 13:05:44 +0000
Subject: Simple Question
Groups: php.general 
Request: Send a blank email to php-general+get-17150@lists.php.net to get a copy of this message
Follows is a simple bit of code, i want to itterate through a number of variables called item1, item2 and item3 <? $item1="Lamb"; $item2="Furniture"; $item3="Chair"; for( i=1; i<=3; i++) { echo("Item ".$item$i) << This does not work! } So the three echo should look like:- echo("Item ".$item1) echo("Item ".$item2) echo("Item ".$item3) Please help! =========================================================== Scott Culverhouse, Operations Manager, DNA Internet Services (UK) Ltd Telephone: 01604 670717 Fax: 01604 671459 Email: scott@dna-is.net Web: http://www.dna-is.com ===========================================================

« previous php.general (#17150) next »