What are the potential consequences of not properly hashing passwords in a PHP application?
If passwords are not properly hashed in a PHP application, it can lead to security vulnerabilities such as unauthorized access to user accounts. To solve this issue, passwords should be securely hashed using PHP's password_hash() function with the PASSWORD_DEFAULT algorithm.
$password = "password123";
$hashed_password = password_hash($password, PASSWORD_DEFAULT);