Skip to content

Commit d97ae4a

Browse files
author
mimidots
committed
Added method to sanitize array data
1 parent 00f3a33 commit d97ae4a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Builder.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,17 @@ private static function sanitize($data)
418418
return $data;
419419
}
420420

421+
/**
422+
* Sanitizes values in an array
423+
* @param array $arry: the array to sanitize
424+
* @return array :sanitized array output
425+
*/
426+
private static function sanitizeAV(array $arry){
427+
return array_map(function($value){
428+
return self::sanitize($value);
429+
},$arry);
430+
}
431+
421432

422433
/**
423434
*Validate that the table name has been provided and is a string

0 commit comments

Comments
 (0)