Re: Representing a variable

From: Date: Sun, 26 Apr 2015 12:17:35 +0000
Subject: Re: Representing a variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-324827@lists.php.net to get a copy of this message
If I understood correctly, this should work: $params["$value_translation"] On Sun, Apr 26, 2015 at 2:52 PM, Ron Piggott <ron.piggott@actsministries.org > 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 > >

« previous php.general (#324827) next »