i have gotten this example print out of an array, i'm new to php and am confusing myself upon how to access it

this is an example of the print out:

$myarray = array( [0] => Array
        (
            [var_a] => something
            [var_b] => something else
        )
...);

so to access the contents of [0] would i use:

$usingvar_a = $myarray [0][var_a];
$usingvar_b = $myarray [0][var_b];

is that correct? if not i don't think i totally understand the meaning of the syntax so could anyone offer some advice?

many thanks,

yes , you are correct.try to echo out your variables and you'll see :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.