<?php $i = 10; eval ("\$result$i=\"test\";");
echo $result10; ?> Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 19, 2002 2:47 AM Subject: [PHP] Variable Problem > > > How do I combine the following so it is treated as one variable > > $i=10 > > $result$i="test"; > > > I want this to be: > > > $result10="test"; > > > $i changes so I cannot just put in 10 instead of I. > > > anybody know how i can do that? > > TIA > Randy > ---------------------------------------------------------------------------- ---- > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]