You are here: Re: Add variable to variable name « PHP Programming Language « IT news, forums, messages
Re: Add variable to variable name

Posted by Rami Elomaa on 04/23/07 10:06

"Boris Savc" <boris.savc@siol.net> wrote in message
news:wf%Wh.739$553.591865@news.siol.net...
> Sorry for confuzing subject, but that's the thing I'm trying to achieve.
> For example:
>
> $a = "Hello";
> $b = 1;
>
> I want to change the name of $a to $a1 where 1 is value of variable $b!


Insanity wrapped in perverted maddness, but...
${"a$b"} = $a;

Have a nice maintenance hell.

--
Rami.Elomaa@gmail.com

"Good tea. Nice house." -- Worf

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация