addslashes() example with NULL byte?
<p>What is NUL or NULL byte and how escaping works with NULL byte?</p>

<p>Can someone please give example?</p>

<p>single quote and double quote is very obvious but i am not clear about NULL byte.</p>

<p>Documentation from PHP.net.</p>

<p>addslashes() returns a string with backslashes before characters that need to be quoted in database queries etc. These characters are single quote ('), double quote ("), backslash () and NUL (the NULL byte). </p>

<p>I tried something like this:</p>

<pre><code>$a = NULL;
$str = " NULL example $a ";
echo addslashes($str);
</code></pre>

<p>But i don't see any added slash in output.</p>
