File_Put_Contents writes only half of the data

0

So I'm having a problem with my code, query, for, foreach and if work perfectly. However file_put_contents writes only half of the reported data. My goal with this code is basically to make a query of the bank, to return the result and in array to be converted into json and be divided by the 'automadora_idmontadora' with the models of vehicles corresponding to each assembler. Here's the code I'm trying to do:

MyClass:

AndfinallymyCrudFunction:

    
asked by anonymous 18.09.2018 / 03:40

0 answers