| 
 Posted by Kimmo Laine on 03/14/06 14:12 
"Angelos" <angelos@redcatmedia.net> wrote in message  
news:dv68u4$ba4$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com... 
>I worked it out I think: 
> 
> $a = "a"; 
> $b = "b"; 
> $varA = $a.$b; 
> 
> $$varA = "jack"; 
> echo "Dog name is: ".$ab; 
 
You can also use the curly braces so you don't need to always assign a new  
variable for that. Example: 
 
$alpha = 'a'; 
$beta = 'b'; 
${$alpha.$beta} = 'all your phps are belong to us'; 
echo $ab; 
 
--  
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviφ 
spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)
 
  
Navigation:
[Reply to this message] 
 |