In my study how objects and arrays work with PHP I have a new problem. Searching in existing questions didn\'t give myself the right \"push\".
I have this for exampl
array_push() doesn't allow you to specify keys, only values: use
$html_doc["title"] = "testtitle";
.... except you're not working with an array anyway, because you're casting that array to an object, so use
$html_doc->title = "testtitle";
You can simply use $html_doc["title"] = "testtitle";
Check this comment on the array_push manual page.