📅  最后修改于: 2022-03-11 14:54:35.986000             🧑  作者: Mango
use Illuminate\Support\Arr;
$array = ['name' => 'John Doe', 'age' => 17];
$exists = Arr::exists($array, 'name');
// true
$exists = Arr::exists($array, 'salary');
// false