I want to write a function that modifies an array like this:
function addDataToArray($array,array("data","userdata","username"),"john") { // do something here }
result will be $array["data"]["userdata"]["username"]="john"
I'm aware that it would be much easier to achieve this in normal ways but I need to learn if this can be done. Thanks