Posted by jamen on 07/29/05 14:45
bettina@coaster.ch wrote:
> I have 3 inc. files where I keep names of series in different
> languages. For example:
> $series_1 = 'kdfkd';
> $series_2 = 'fdgdgd';
> $series_3 = 'hdssasd';
> How can I write the reference to the serie name in the inc. file.
> That's to say, how can I concatenate $series_ and the value of $i????
You mean like this:
$series_1 = 'kdfkd';
$series_2 = 'fdgdgd';
$series_3 = 'hdssasd';
$i = 2;
echo ${'series_'.$i}; // echo 'fdgdgd'
Navigation:
[Reply to this message]
|