Reply to Re: [PHP] Creating a varable with a name held in a string

Your name:

Reply:


Posted by Richard Davey on 02/11/05 02:40

Hello Ben,

Friday, February 11, 2005, 12:36:16 AM, you wrote:

BEl> So the question is is there a function like create_var which
BEl> takes a string and a value and creates a variable?

$var_name = "new_variable";
$$var_name = "hello world";
echo $new_variable;

Search for "variable variables" in the PHP manual for more info.

Best regards,

Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde

[Back to original 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

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