Re: [PHP] Variable Syntax Question From: * R&zE: (renze <email protected>)
Date: 08/31/01

<Original message>
From: * R&zE: <renze <email protected>>
Date: Fri, Aug 31, 2001 at 04:36:36PM +0200
Message-ID: <20010831163636.A29057 <email protected>>
Subject: Re: [PHP] Variable Syntax Question

Btw... Why not just use an array?

<input type="text" name="bob[]">
<input type="text" name="bob[]">
<input type="text" name="bob[]">
<input type="text" name="bob[]">

and then:

foreach ($bob as $myValue) {
  print ($myValue);
}

That's a much nicer solution...

-- 

* R&zE:

-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze <email protected> -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>