I have array and i need return format: [1,2,3]
$a = [1,2,3];
print_r( $a );
// result: Array ( [0] => 1 [1] => 2 [2] => 3 )
I had used json_encode but it only return "[1,2,3]" . And I need return $a = [1,2,3];
So how to process return that format [1,2,3]