variable array name
- From: mark.head@xxxxxxxxxxxx ("Mark Head")
- Date: Thu, 29 Nov 2007 12:47:37 -0000
I seem to be having a problem in assigning a value to an array where the
array is called dynamically.
e.g. the physical name for the array is "my_array", so:
my_array[1] = "test";
works fine.
$array_name = "my_array";
$array_name[1] = "test";
does not work.
I have tried $$array_name[1] = "test"; but to no avail.
Any Ideas?
Cheers,
Mark
.
- Follow-Ups:
- Re: [PHP] variable array name
- From: "Daniel Brown"
- Re: [PHP] variable array name
- Prev by Date: Re: [PHP] Curl doesn't handle memory stream
- Next by Date: Re: [PHP] Structured Code vs. Performance
- Previous by thread: Variable Names
- Next by thread: Re: [PHP] variable array name
- Index(es):