You are here

public static function Helper::array_merge__save_numeric_keys in Anti Spam by CleanTalk 8.3

* Merging arrays without reseting numeric keys * *

Parameters

array $arr1 One-dimentional array: * @param array $arr2 One-dimentional array * * @return array Merged array

1 call to Helper::array_merge__save_numeric_keys()
Helper::http__request in src/lib/Cleantalk/Common/Helper.php
* Function sends raw http request * * May use 4 presets(combining possible): * get_code - getting only HTTP response code * async - async requests * get - GET-request * ssl - use SSL * *

File

src/lib/Cleantalk/Common/Helper.php, line 210

Class

Helper
Cleantalk's hepler class

Namespace

Drupal\cleantalk\lib\Cleantalk\Common

Code

public static function array_merge__save_numeric_keys($arr1, $arr2) {
  foreach ($arr2 as $key => $val) {
    $arr1[$key] = $val;
  }
  return $arr1;
}