Answer the question
In order to leave comments, you need to log in
How to form a json request correctly?
Problem with generating JSON request
It should turn out:
{
"arr": [
"3333"
]
}
$fields= [
'arr' => [ '3333']
];
echo json_encode($fields)
{
"arr": [
0 = "3333"
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question