Hello all,

I am having a problem with inserting into multiple dimensional arrays and then printing them out.

//I insert dummy info such as below:
$questions2[0][3]="6";
$questions2[0][4]="7";
$questions2[1][3]="8";
$questions2[1][2]="9";

//I then attempt to print the info stored in the array in the previous step
echo "questions $questions2[0][3]<br>";
echo "questions $questions2[0][4]<br>";
echo "questions $questions2[1][3]<br>";
echo "questions $questions2[1][2]<br>";

I get the following output:
questions Array[3]
questions Array[4]
questions Array[3]
questions Array[2]

How else can I print the info stored in the array at a specific position?

I am awaiting for your assistance since I am stuck,
Thank you in advance,
Mario

    $questions2[0][3]="6";
    $questions2[0][4]="7";
    $questions2[1][3]="8";
    $questions2[1][2]="9";
    
    //I then attempt to print the info stored in the array in the previous step
    echo "questions " . $questions2[0][3] . "<br />";
    echo "questions " . $questions2[0][4] . "<br />";
    echo "questions " . $questions2[1][3] . "<br />";
    echo "questions " . $questions2[1][2] . "<br />";
    

      Thank you very much Joe, it worked!!!

      I hate minor details :-)

        No problem, if you could also mark the thread as resolved that'd be great. 🙂

          Write a Reply...