Re: [PHP] dynamic variable usage

2006-08-21 Thread Richard Lynch
On Sat, August 19, 2006 10:49 am, Hiren Parmar wrote:
> i have one problem regarding variable's access ...
>
> i hv defined some varibale like
>
> DEFINE('_xx_USERNAME','Username');
>
> in one file ...
>
> and in another file , i got this variable (_xx_USERNAME) as a value of
> another variable ... like
>
> $filedValue = '_xx_USERNAME' ;
>
> now , the problem is i want the value of _xx_USERNAME in the second
> file ...
>
> that is *Username*...  by using variable $filedValue ...
>
> how could i do this ?

http://php.net/constant

TIP:
ALWAYS read all the "See Also" links for a function when you want a
function related to that function.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] dynamic variable usage

2006-08-19 Thread Hiren Parmar

Hi ,

i have one problem regarding variable's access ...

i hv defined some varibale like

DEFINE('_xx_USERNAME','Username');

in one file ...

and in another file , i got this variable (_xx_USERNAME) as a value of
another variable ... like

$filedValue = '_xx_USERNAME' ;

now , the problem is i want the value of _xx_USERNAME in the second file ...

that is *Username*...  by using variable $filedValue ...

how could i do this ?


--
Hiren Parmar
--
http://www.i3brains.com/