Tanel Tammik wrote:
"Nathan Rixham" wrote in message
news:4c097083.3080...@gmail.com...
Tanel Tammik wrote:
""Tanel Tammik"" wrote in message
news:31.a3.00596.0d759...@pb1.pair.com...
"Ashley Sheridan" wrote in message
news:1275678975.2217.83.ca...@localhost...
On Fri, 2010-06-04 at 22:07
"Nathan Rixham" wrote in message
news:4c097083.3080...@gmail.com...
> Tanel Tammik wrote:
>> ""Tanel Tammik"" wrote in message
>> news:31.a3.00596.0d759...@pb1.pair.com...
>>> "Ashley Sheridan" wrote in message
>>> news:1275678975.2217.83.ca...@localhost...
On Fri, 2010-06-04 at 22:07 +
Tanel Tammik wrote:
""Tanel Tammik"" wrote in message
news:31.a3.00596.0d759...@pb1.pair.com...
"Ashley Sheridan" wrote in message
news:1275678975.2217.83.ca...@localhost...
On Fri, 2010-06-04 at 22:07 +0300, Tanel Tammik wrote:
Hi,
define('MYCONST', 'something');
$my = 'my';
$const = 'co
""Tanel Tammik"" wrote in message
news:31.a3.00596.0d759...@pb1.pair.com...
>
> "Ashley Sheridan" wrote in message
> news:1275678975.2217.83.ca...@localhost...
>> On Fri, 2010-06-04 at 22:07 +0300, Tanel Tammik wrote:
>>
>>> Hi,
>>>
>>> define('MYCONST', 'something');
>>>
>>> $my = 'my';
>>> $
"Ashley Sheridan" wrote in message
news:1275678975.2217.83.ca...@localhost...
> On Fri, 2010-06-04 at 22:07 +0300, Tanel Tammik wrote:
>
>> Hi,
>>
>> define('MYCONST', 'something');
>>
>> $my = 'my';
>> $const = 'const';
>>
>>
>> is it possible to get the value of MYCONST using variables $my and
On Fri, 2010-06-04 at 22:07 +0300, Tanel Tammik wrote:
> Hi,
>
> define('MYCONST', 'something');
>
> $my = 'my';
> $const = 'const';
>
>
> is it possible to get the value of MYCONST using variables $my and $const_
>
> Br
> Tanel
>
>
>
I don't really see how you can? The only correlation
Use the constant() function:
echo constant( $my . $const );
http://www.php.net/manual/en/function.constant.php
-Original Message-
From: Tanel Tammik [mailto:keevit...@gmail.com]
Sent: Friday, June 04, 2010 3:08 PM
To: php-general@lists.php.net
Subject: [PHP] constant from variable
Hi,
7 matches
Mail list logo