Update DB\IO and do not print call steck on DB_INFO calls, array list

entry clean up
This commit is contained in:
Clemens Schwaighofer
2024-10-17 13:55:38 +09:00
parent 180fba596a
commit 14dab54f2c
2 changed files with 30 additions and 10 deletions

View File

@@ -509,6 +509,22 @@ class ArrayHandler
}
return $array;
}
/**
* Remove entries from a simple array, will not keep key order
*
* any array content is allowed
*
* https://stackoverflow.com/a/369608
*
* @param array<mixed> $array Array where elements are located
* @param array<mixed> $remove Elements to remove
* @return array<mixed> Array with $remove elements removed
*/
public static function arrayRemoveEntry(array $array, array $remove): array
{
return array_diff($array, $remove);
}
}
// __END__