Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add key value array php

// laravel

use IlluminateSupportArr;

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

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


Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #add #key #array #php
ADD COMMENT
Topic
Name
6+7 =