Double Variable Array
Posted: Fri Nov 22, 2002 4:27 pm
Well, hello! This is my first post here, but I hope everything works ok. I really like the looks of the message board. I hope my subject was appropriate. Here is what I'm trying to do in short:
(if x was 1, and the array started at 1) could I make the value stored in titleArray[1] = "sample"; ?
Did that make much sense...I just need to know if I can use an array variable value while referring to another variable. Whoops, that sounds confusing, but maybe you get my point. Thanks!
Code: Select all
$nameArray = array("title","author","subject","date");
$titleArray = array();
$authorArray = array();
$subjectArray = array();
$dateArray = array();
while (x<=5)
{
// lots of code here, don't need help on this //
$currentSection = "sample";
$storyArrayїx]Arrayїx] = $currentSection;
// more code //
}Did that make much sense...I just need to know if I can use an array variable value while referring to another variable. Whoops, that sounds confusing, but maybe you get my point. Thanks!