copy php array to another
$arr1 = ['a'=>1, 'b'=>2, 'c'=>3];
$arr2 = $arr1;
unset($arr2['a'];
print_r($arr1);
//['b'=>2, 'c'=>3]
// ------- OR -------
$arr2 = clone $arr1;
unset($arr2['a'];
print_r($arr1);
//['a'=>1, 'b'=>2, 'c'=>3]
Also in PHP:
- copy php array to another
- delete repeated elements array php
- cloudinary laravel
- auto clear cache laravel
- acf group
- a.length en php
- date month php
- codingneter in insert data and get id
- date time format year php
- php switch break
- date - Manual - PHPwww.php.net › manual › function.date.phpdate ( string $form
- clear cache swr
- base64_decode php online
- check website ssl certificate using php
- ClearCache laravel
- enable error reporting on a page php
- check if after specific position has string php
- date("U")
- download php7.4 aptget
- check string on string php
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/Users/USER/composer/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
- check if string contain element php
- check the php version in ubuntu
- console.;og for php