Skip to content

Commit

Permalink
Added method to sanitize array data
Browse files Browse the repository at this point in the history
  • Loading branch information
mimidots committed Mar 12, 2018
1 parent 00f3a33 commit d97ae4a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d97ae4a

Please sign in to comment.