I want to do something like this:
$myArray = array(
'1' => array('2' => array('3' => 'Test'))
);
$changeIt = $myArray['1']['2']['3'];
$changeIt = 'Changed Test';
// $myArray['1']['2']['3'] is now "Changed Test"
Are there ways to do this ?
When you write $variable = array[key][key]... you are passing value of the array to the variable. If you want to change value of array itself you need to do it like this:
$myArray = array(
'1' => array('2' => array('3' => 'Test'))
);
$myArray['1']['2']['3'] = 'Changed Test';
print_r($myArray);