Discussion: variable
Afficher un message
Vieux 15/09/2007, 10h44   #2
Gandalf
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: variable

On Sep 15, 10:32 am, Gandalf <goldn...@gmail.com> wrote:
> I don't understand why this expression doesn't work:
>
> $var= '$_POST';
>
> $name= ${$var}[name];
>
> the ${$var}[name] expression wont return the same expression of
> $_POST[name].
> why does it happens, and how can i solve it?
>
> thanks


i meant to write $var ='_POST',
and the that ${$var}[name] wont return the same value as $_POST[name]

  Réponse avec citation
 
Page generated in 0,04625 seconds with 9 queries