Hello actulemnte I have a doubt this is my code php
to make my array:
<?php
$tra = new area();
$madres = $_POST['mesa'];
$reg = $tra->traer_area($madres);
if (count($reg) == 0) {
$data['data'] = array();
} else {
for ($i = 0; $i < count($reg); $i++) {
$data['data'] = $reg;
}
}
print_r($data);
?>
And the result is:
Array ( [data] => Array ( [0] => Array ( [nombre_completo] => YOLANDA MEJIA ROJAS ) [1] => Array ( [nombre_completo] => IRMA VARA SANCHEZ ) [2] => Array ( [nombre_completo] => DIANA AGUAYO MORENO ) ) )
What I want is for it to come out like this;
["YOLANDA MEJIA ROJAS","IRMA VARA SANCHEZ","DIANA AGUAYO MORENO"]