= 1 || $quantity < 5) { for ($i = 1; $i <= $quantity; $i++) { $nicheng .= (mt_rand(0, 1) ? self::ARR_MING[mt_rand(0, count(self::ARR_MING) - 1)] : self::ARR_MING[mt_rand(0, count(self::ARR_MING) - 1)]); } } return $nicheng; } }