title: PHP hash function doing something strange with "\v" - how do I enable escaping from the command line?
body: <p>If I run the following in PHP</p>
  
  <p><code>&lt;?=hash('sha256', "\v");?&gt;</code></p>
  
  <p>I get this hash:</p>
  
  <p><strong>e7cf46a078fed4fafd0b5e3aff144802b853f8ae459a4f0c14add3314b7cc3a6</strong></p>
  
  <p>However if I put <code>\v</code> into any of the online tools like <a href="http://www.xorbin.com/tools/sha256-hash-calculator" rel="nofollow">http://www.xorbin.com/tools/sha256-hash-calculator</a>, I get the following hash:</p>
  
  <p><strong>1b5cec8c46451b5375ea7e61f310fe831ad17f62098beb7a5bfce304821e3f78</strong></p>
  
  <hr>
  
  <p>I realise that PHP is obviously hashing the escaped value, rather than the actual string,</p>
  
  <blockquote>
    <p><strong>\v</strong> &nbsp;&nbsp; vertical tab (VT or 0x0B (11) in ASCII) (since PHP 5.2.5)</p>
  </blockquote>
  
  <p>(Reference: <a href="http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.double" rel="nofollow">http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.double</a>)</p>
  
  <p>but what I'm trying to figure out is how to get the same result as the PHP function using the command line or one of the online tools - I've tried <code>VT</code>, <code>vt</code>, <code>0x0B</code> and <code>11</code> - but none of them give me the same result.</p>
  
  <p>Thanks for your help!</p>
  
  <p><strong>UPDATE: As @Alex-Info.net pointed out, changing the double quotes to single quotes will treat the <code>\v</code> as a string, but unfortunately I can't change the PHP in this instance.</strong></p>