Weird array, get value, but get 1 letter or number back

  arrays, php

so I have this array:

array(3) {
    [0] => array(15) {
        ["ID"] => string(10)
        "1234567890" [0] => string(10)
        "1234567890" ["value1"] => string(13)
        "lorem" [1] => string(6)
        "Ipsum" 
    }

I access the values using a for each loop:

foreach ($tests as $test)
        {       
            $character = $test['ID'] . "  / " . $test['value1'] . " / " . $test['value1'][1] 
        }

But now it prints : 1234567890 / lorem / lorem
with the [1] it prints: 1234567890 / lorem / I
It gets one letter for some reason.

I want to be able to print $character: 1234567890 / lorem / Ipsum.
My question is, why is this and how can I access the second value properly?

Source: Ask PHP

LEAVE A COMMENT