/ Published in: PHP
Need a function to clean your POST array before inserting into a database? Just pass $POST to this function.
Expand |
Embed | Plain Text
function clean_array_for_post($post) { foreach($post as $key => $value) { // stripslashes, we don't want to rely on magic quotes } // quote if not a number } } return $post; }
You need to login to post a comment.
