no message

This commit is contained in:
kuaifan
2022-12-02 09:29:08 +08:00
parent b0d83f7858
commit a925102881
2 changed files with 37 additions and 0 deletions

View File

@@ -894,6 +894,9 @@ class Base
*/
public static function arrayRetainInt($array, $reInt = false)
{
if (!is_array($array)) {
return $array;
}
foreach ($array as $k => $v) {
if (!is_numeric($v)) {
unset($array[$k]);