Discussion: variable
Afficher un message
Vieux 15/09/2007, 10h07   #3
gosha bine
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: variable

Gandalf wrote:
> 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]
>


hi

this should work as expected. Care to post more code?

--
gosha bine

extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
  Réponse avec citation
 
Page generated in 0,04576 seconds with 9 queries