📅  最后修改于: 2022-03-11 14:57:19.943000             🧑  作者: Mango
use Illuminate\Support\Arr;
$array = ['products' => ['desk' => ['price' => 100]]];
Arr::forget($array, 'products.desk');
// ['products' => []]