What is the common method for hash-code encryption in PHP, specifically in PHPBB forums?

In PHPBB forums, user passwords are typically encrypted using the PHP password_hash() function with the PASSWORD_DEFAULT algorithm. This ensures that the passwords are securely hashed before being stored in the database. To properly hash passwords in PHPBB forums, you can use the following code snippet:

$password = 'password_to_hash';
$hashed_password = password_hash($password, PASSWORD_DEFAULT);