Insert object into array Insert object into array arrays arrays

Insert object into array


The "replacement" argument must be an array itself, so you should write

array_splice($this->EventosEntrada, $i, 0, [$EventoLimite]); // note []s


maybe its because of that when you introduce a new object, just public variables and functions are available in the specific file you work on. I mean it is cause by access of clsasses.