Is is bad practice to use array_walk with mysqli_real_escape_string?
问题 So I have a function called "escape" that looks like this: function escape($string){ $escaped_string = mysqli_real_escape_string($this->conn, $string); return $escaped_string; } I before running a query I send a variable (originated from user input obviously) here so its escaped for security reasons. Now I know its possible to use array_walk to apply an array of values to this function, but I just want to know if there is any reason why I shouldn't? I know it sounds like a daft question but