$hash = md5("plaintext-data"); echo $hash; //Outputs the hash value: e9d71f5ee7c92d6dc9e92ffdad17b8bd
$hash = hash("sha256", "plaintext-data"); echo $hash; //Outputs the hash value: 8f434346a458efa2f946085abb9ac61dac8f752d1f3c572e72715cb141f12e28
$hash = password_hash("plaintext-password", PASSWORD_BCRYPT); echo $hash; //Outputs the hashed password value: $2y$10$W.BS8riSVJ5QFnd5vpwy/OH0BJMB4Dg0p6z/uE6ZzoGa6ZC1DhRUCPHP offers a built-in library called "hash" that provides various hashing algorithms like MD5, SHA-256, Bcrypt, etc. for secure hashing of data. The "password_hash" function is provided by the "password_compat" package, which uses the Bcrypt algorithm to generate the hashed password value.