Web Development and Design Blog
28. Apr, 2008 0 Comments
function escape_string($varr){ //Escape array or string in postgre if(is_array($varr)){ foreach($varr as $key => $value){ $result[$key] = trim(pg_escape_string($value)); } }else{ $result = trim(pg_escape_string($varr)); } return $result; }
Notify me of followup comments via e-mail
No comments yet... Be the first to leave a reply!