0👍
For what i understand in your question, you want to return a list of your data. you need to have an array container.
<?php
$arr = [];
foreach($editData as $editData){
$arr[] = $editData;
}
echo json_encode($arr);
?>
Source:stackexchange.com
0👍
For what i understand in your question, you want to return a list of your data. you need to have an array container.
<?php
$arr = [];
foreach($editData as $editData){
$arr[] = $editData;
}
echo json_encode($arr);
?>