<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'addslashes automatically to $_POST variables'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Fri, 09 Jan 2009 03:58:30 GMT</pubDate>
<item>
<title>SeanJA said on 8/15/08</title>
<link>http://snipplr.com/view/7872/addslashes-automatically-to-post-variables/</link>
<description><![CDATA[ Umm... you don't need to create the temporary array, that is what

_foreach ($vars as $var)_

does... it creates a temp varriable to hold each one of $vars

If you are going to be putting it into a database, would it not be better to use *mysql_real_escape_string()*, also noting that *add_slashes()* is being dropped from the language? ]]></description>
<pubDate>Fri, 15 Aug 2008 22:03:43 GMT</pubDate>
<guid>http://snipplr.com/view/7872/addslashes-automatically-to-post-variables/</guid>
</item>
</channel>
</rss>