📜  数组助手 array_push laravel - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:12.690000             🧑  作者: Mango

代码示例1
use Illuminate\Support\Arr;

$array = Arr::add(['name' => 'Desk'], 'price', 100);

// or this one:
  
  
$array = Arr::add($array, 'price', 100);