From d97ae4aad14121b834347a45fc206510340f13ac Mon Sep 17 00:00:00 2001 From: mimidots Date: Mon, 12 Mar 2018 10:14:18 +0300 Subject: [PATCH] Added method to sanitize array data --- src/Builder.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Builder.php b/src/Builder.php index 1958be9..1d6fd57 100644 --- a/src/Builder.php +++ b/src/Builder.php @@ -418,6 +418,17 @@ private static function sanitize($data) return $data; } + /** + * Sanitizes values in an array + * @param array $arry: the array to sanitize + * @return array :sanitized array output + */ + private static function sanitizeAV(array $arry){ + return array_map(function($value){ + return self::sanitize($value); + },$arry); + } + /** *Validate that the table name has been provided and is a string