示例:
array:3 [▼
0 => UploadedFile {#316 ▶}
1 => UploadedFile {#317 ▶}
2 => null
]
dd(array_filter($file)) ;
使用函数后输出:
array:2 [▼
0 => UploadedFile {#316 ▶}
1 => UploadedFile {#317 ▶}
]
示例:
array:3 [▼
0 => UploadedFile {#316 ▶}
1 => UploadedFile {#317 ▶}
2 => null
]
dd(array_filter($file)) ;
使用函数后输出:
array:2 [▼
0 => UploadedFile {#316 ▶}
1 => UploadedFile {#317 ▶}
]