Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add key value array php

use IlluminateSupportArr;

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

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


 
PREVIOUS NEXT
Tagged: #add #key #array #php
ADD COMMENT
Topic
Name
3+4 =