What are the security concerns associated with using md5 hashing for passwords in PHP, and what alternative methods should be considered for password hashing?

Using md5 hashing for passwords in PHP is not secure because it is considered weak and vulnerable to brute force attacks. Instead, it is recommended to use stronger hashing algorithms like bcrypt or Argon2 for password hashing in PHP to enhance security.

// Using bcrypt for password hashing in PHP
$password = "secret_password";
$hashed_password = password_hash($password, PASSWORD_BCRYPT);