On Tuesday, March 5, 2002, at 09:12 PM, James Taylor wrote:
> Yeah, the curly braces work great. I was at first doing a > "where id = " . $_SESSION['id'], $db); but I like the curly braces > better. > I like the curly braces too, but there's one time when they DON'T work: for ($i = 0; $i < $n; $i++) { echo "<li>{$_POST["name{$i}output"]}</li>\n"; } If you use this technique, which is a workable but probably bad way to write a program, you need to use braces to distinguish the counter ($i) from the rest of the variable name, and thus you can't use the curly braces around the entire variable. Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php