Re: Representing a variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 26 April 2015 13:17:35 BST, "Stefan A." <acid24@xxxxxxxxx> wrote:
>If I understood correctly, this should work:
>
>$params["$value_translation"]
>
>On Sun, Apr 26, 2015 at 2:52 PM, Ron Piggott
><ron.piggott@xxxxxxxxxxxxxxxxxx
>> wrote:
>
>> I am wondering how to correctly represent the variable
>> $params['en-US_translation']
>>
>> $value = 'en-US';
>>
>> What I currently have is
>>
>> $params[{$value . '_translation'}]
>>
>> Thank you.
>>
>> Ron
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>

That would be looking for a variable called $value_translation which doesn't exist here.

what you're already using Ron is perfectly acceptable.  

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux