PHP: 'salt' option to password_hash is deprecated
<p>I'm using password hashing for a registration. I need to create a Salt manually and following is the code I have used:</p>

<pre><code>$options = [
    'cost' =&gt; 11,
    'salt' =&gt; mcrypt_create_iv(22, MCRYPT_DEV_URANDOM)
];
$password = password_hash(
    $this-&gt;input-&gt;post("confirm_password"),
    PASSWORD_BCRYPT,
    $options
);
</code></pre>

<p>When I run this code it gives me an error saying:</p>

<blockquote>
  <p>password_hash(): Use of the 'salt' option to password_hash is deprecated"</p>
</blockquote>

<p>Any solution for this?</p>