public static function Helper::array_merge__save_numeric_keys in Anti Spam by CleanTalk 8.4
Same name and namespace in other branches
- 9.1.x src/lib/Cleantalk/Common/Helper.php \Cleantalk\Common\Helper::array_merge__save_numeric_keys()
* 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 * * @todo Have to replace this method…
File
- src/
lib/ Cleantalk/ Common/ Helper.php, line 956
Class
- Helper
- CleanTalk Helper class. Compatible with any CMS.
Namespace
Cleantalk\CommonCode
public static function array_merge__save_numeric_keys($arr1, $arr2) {
foreach ($arr2 as $key => $val) {
$arr1[$key] = $val;
}
return $arr1;
}