[Solved] array conversion removing index


You can use cast the value (type juggling).

Change,

$ret[] = $row['count'];

To,

$ret[] = (int) $row['count'];

0

solved array conversion removing index