Greetings as they are all, I have a problem and I do not really know what happens, these are my versions:
Server version: Apache / 2.4.18 (Ubuntu)
PHP 7.2.11-4 + ubuntu16.04.1 + deb.sury.org + 1 (cli) (built: Nov 4 2018 05:10:57) (NTS)
I am making a query to my database and I want to organize that data in an array for what I am using array_push but it does not return any kind of response, I am forming the array in this way:
array_push($arr,array(
"codarticulo" => $row4["codarticulo"],
"precio_venta" => $row4["precio_venta"],
"descripcion" => $row4["descripcion"],
"unidad_medida" => $row4["unidad_medida"],
"codfamilia" => $row4["codfamilia"],
"multiplo_venta" => $row4["multiplo_venta"]
));header('Content-Type: application/json');
echo json_encode($arr);
The funny thing is that the production host works normally and in my development team, no one can tell me what is happening.
PS: the development team has the same versions as the production team