标签: php
我有数组,我需要返回格式:[1,2,3]
$a = [1,2,3]; print_r( $a ); // result: Array ( [0] => 1 [1] => 2 [2] => 3 )
我用过json_encode,但它只返回“ [1,2,3]” 。我需要返回$ a = [1,2,3];
那么如何处理返回该格式[1,2,3]