On Wed, 27 Mar 2002, John Fishworld wrote:
> so i want
> $newvar_$i = result 1
> $newvar_$i = result 2
> 
> so I can use them outside the loops as
> $newvar_1 and $newvar_2

Why don't you use an array? That's what they're for.

Nevertheless, 

  $i = 1;
  $varname = "newvar$i";
  $$varname = "result 1";

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to