Answer the question
In order to leave comments, you need to log in
How to remove quotes in php response?
Hello. Here is a request
$row = json_encode(array_pop($stmt->fetchAll(PDO::FETCH_OBJ)));
echo "$row";
Answer the question
In order to leave comments, you need to log in
And actually why?? You get a json encoded string... Where do you need it then??
In general, of course, you can do this: echo json_encode(......., JSON_NUMERIC_CHECK);
but something seems to me that you are going to the wrong steppe.
Perhaps your columns are not INT, but VARCHAR or TEXT. Make them INT in the db.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question