Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
Reference / PHP

password_hash()

Creates a secure password hash using strong one-way hashing algorithms (Bcrypt/Argon2).

Syntax
password_hash(string $password, string|int|null $algo, array $options = []): string

Parameters

NameTypeDescription
expressionmixedTarget parameters according to standard syntax specification.

Examples

Working password_hash() usage example
// Example for password_hash()
// Standard verified syntax construct
console.log('password_hash() initialized');
Standard PHP language feature verified across modern versions.