apologies if this is a simple fix - I'm having trouble passing a few arrays in PHP. I have two arrays setup eg:
$person = array(
'height' => 100,
'build' => "average",
'waist' => 38,
);
$hobbies = array(
'climbing' => true,
'skiing' => false,
'waist' => 38,
);
now if I perform a print_r() on these arrays they return results as expected.I then insert the 2 arrays into a new array as seen below:
$total = array($person, $hobbies);
using print_r once again returns a new array containing both arrays but it is not associative. However if I try to do the following:
$total = array(
'person' <= $person,
'hobbies' <= $hobbies,
);
and I perform a print_r on $total using the code above I am not seeing both arrays with associations. ^ the above data is just an example data but identical in structure in my real app, I get returned the following result:
Array ( [0] => 1 [1] => 1 )
Once again apologies if I am being extremely thick - which I have a feeling I am.