PHP 将数组的字符串转数字 $arr = ["6","10"]; $newArr = json_decode('[' . join(',', $arr) . ']', true); var_dump($newArr);