On Wed, 27 Mar 2002, John Fishworld wrote:

use this:
${"ned_".$i."_city"} = $ned_city;

after that you can use your new var as $ned_1_city, if $i was 1
ofcourse...

But in this case you might be better off using arrays, as some have
suggested.

> Can someone please remind me what the correct syntax for this is !
> in a loop
> and want individual
> 
> $ned_1_city = blah
> $ned_2_city = blur
> 
> I've been trying this but its wrong
> 
> $ned_.$i._city = $ned_city ;
> 
> thanks
> john
> 
> 
> 
> 
> 

-- 
Jan Rademaker <[EMAIL PROTECTED]>
http://www.ottobak.com



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

Reply via email to