Re: Representing a variable

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

 



On Sun, Apr 26, 2015 at 7: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'}]
>
>
You can try this
$params["{$value}_translation"] (with double quotes not single)

If single quote, then what you have is ok.



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


-- 
Marcos | I love PHP, Linux, and Java
<http://javadevnotes.com/java-string-split-pipe-examples>

[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