$arr = ['key0' => 'val0','key1' => 'val1', 'key2' => 'val2', 'key3' => 'val3'];
$removeKeys = ['key1', 'key2', 'key3'];
$arr = array_diff_key($arr, array_flip($removeKeys));
by გიორგი უზნაძე
4 years ago
PHP
Arrays
1
Pro tip: use ```triple backticks around text``` to write in code fences