Re: [PHP][SOLVED] Re: usr VAR value as a VAR Name

2006-01-27 Thread Barry
Chris Boget wrote: Let me start by saying there is nothing wrong with the above and it's doing exactly what the OP needed. However, when I use variable variables, I prefer to use the following notation: ${$foo} It makes the coder's intention clear and makes it so that it can't be mistaken

Re: [PHP][SOLVED] Re: usr VAR value as a VAR Name

2006-01-26 Thread Barry
Barry wrote: Fernando Anchorena wrote: Barry wrote: Fernando Anchorena wrote: Fisrt thx to all for yours answers, I'm updating the mail because in hte last mail I'didn express my self correctly : EXAMPLE page1.php === form action=/page2.php?form=yes

Re: [PHP][SOLVED] Re: usr VAR value as a VAR Name

2006-01-26 Thread Chris Boget
echo $$foo Let me start by saying there is nothing wrong with the above and it's doing exactly what the OP needed. However, when I use variable variables, I prefer to use the following notation: ${$foo} It makes the coder's intention clear and makes it so that it can't be mistaken for a

Re: [PHP][SOLVED] Re: usr VAR value as a VAR Name

2006-01-26 Thread Barry
Chris Boget wrote: echo $$foo Let me start by saying there is nothing wrong with the above and it's doing exactly what the OP needed. However, when I use variable variables, I prefer to use the following notation: ${$foo} It makes the coder's intention clear and makes it so that it

Re: [PHP][SOLVED] Re: usr VAR value as a VAR Name

2006-01-26 Thread Chris Boget
Let me start by saying there is nothing wrong with the above and it's doing exactly what the OP needed. However, when I use variable variables, I prefer to use the following notation: ${$foo} It makes the coder's intention clear and makes it so that it can't be mistaken for a possible typo