Array has character limit?

0

Hello, I am creating an API with ajax, but in a function it is giving a bug. When I put in an array variables that came from the database the array is empty, but I have already tested it and the variables have content! But if you enter anything manually into the array it works! Does anyone know how to solve it? Array has character limit? The error.log file does not display anything!

This does not work:

$respmen = $getpmen->fetchObject();
$txtuserb = $respmen->txtUserBlank;
$txtpassb = $respmen->txtPassBlank;
$datainvalid = $respmen->DataInvalid;
$arrays = array($txtuserb, $txtpassb, $datainvalid);
$response = json_encode($arrays);
echo $response;

How it works:

$arrays = array("teste");
$response = json_encode($arrays);
echo $response;
    
asked by anonymous 04.07.2018 / 22:07

0 answers