Re: $myfile[$count]_type?!

From: Date: Tue, 27 Mar 2001 22:21:45 +0000
Subject: Re: $myfile[$count]_type?!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45793@lists.php.net to get a copy of this message
Try this example : <?php $array = array('a','b','c'); $index = 1; ${$array[$index] . '_type'} = 'foo'; print $b_type; // prints foo ?> Regards, Philip On Wed, 28 Mar 2001, FredrikAT wrote: > Hi, again! > > Didn't work... > > This is the scene: (file.php?a=input) > <input type=\"file\" name=\"myfile[$count]"> > > (file.php?a=reg) > Trying to echo type... > ${$myfile[$count] . '_type'} // NOT WORKIN' > ${$myfile$count}_type // NOT WORKIN' > > Any suggestions? > > Fredrik A. Takle > Bergen, Norway > > > > ""FredrikAT"" <ftakle@online.no> skrev i melding > news:99qqqo$v1c$1@toye.p.sourceforge.net... > > Why can't I do $myfile[$count]_type?! > > What schould I do instead? > > > > --------------------------------- > > Fredrik A. Takle > > fredrik@takle.net > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#45793) next »