title: 'password_hash() expects parameter 2 to be integer, string given' when project uploaded to server
body: <p>I encryp the pass like this:    </p>
  
  <pre><code>$Clave=password_hash($_POST["txtClave"], PASSWORD_ARGON2I);
  </code></pre>
  
  <p>And it works on my PC. But, when I uploaded the project to a server the error_log file shows:</p>
  
  <blockquote>
    <p>password_hash() expects parameter 2 to be integer, string given</p>
  </blockquote>
  
  <p>Why is that? How can I fix this? </p>
  
  <p><strong>Edit</strong></p>
  
  <p>I ran a phpInfo file on server and it turned out server version of PHP is 7.1.26 even though on phpMyAdmin it says is 7.2.7</p>
  
  <p>So what would be the best option to ecrypt the password now?</p>