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"" <[EMAIL PROTECTED]> skrev i melding
> 99qqqo$v1c$[EMAIL PROTECTED]">news:99qqqo$v1c$[EMAIL PROTECTED]...
> > Why can't I do $myfile[$count]_type?!
> > What schould I do instead?
> >
> > ---------------------------------
> > Fredrik A. Takle
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]