[PHP] Re: combining variables...

2004-04-06 Thread K.Bogac Bokeer
$i = 2; $var = view_request_$i; $value = $$var; Tristan Pretty wrote: Simply put, can I connect 2 variables, to make one... I want to output: $view_request_$i making for example a string: view_all_2 But I'm getting errors..? Parse error: parse error in

Re: [PHP] Re: combining variables...

2004-04-06 Thread Richard Davey
Hello K.Bogac, Tuesday, April 6, 2004, 6:34:50 PM, you wrote: KBB $i = 2; KBB $var = view_request_$i; KBB $value = $$var; That's it, I knew there was a variable variable ($$) in there somewhere :) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General