You are here: Re: Turning a variable in to a string « All PHP « IT news, forums, messages
Re: Turning a variable in to a string

Posted by Norman Peelman on 08/18/05 06:10

"Dave Thomas" <gentso@hotmail.com> wrote in message
news:3bGdnT-qq-O9L57eRVn-jQ@adelphia.com...
> I have:
> $this_array = array($test_year, $test_color, $test_food)
>
> I want to access another variable based on $test_year, only it will be
> called $test_month (test could be something else). $test_year is a form
> and I want to access $test_month.
>
> If I use $this_array[1] then I am getting the actual value of the form.
> I want to get the name of the variable I am accessing!

Out of your rather confusing message I am getting that you need to use
the 'key( )' array function... go to www.php.net and do a search for 'array'
and you'll get all the functions you need.

Norm
---
FREE Avatar hosting at www.easyavatar.com

 

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

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