How to use password_hash in php


<?php
$pwd = 123123123;
$hashed_password = password_hash($pwd, PASSWORD_DEFAULT);
//var_dump($hashed_password);

if(password_verify($pwd, $hashed_password)) {
    echo "Success";

else{
  echo "Failed";
}

?>