The most secure method to encrypt passwords in PHP is to use the password_hash() function, which applies a strong, one-way hashing algorithm (defaulting to Bcrypt) to securely hash passwords. This function generates a unique hash for each password and includes a salt, which protects against rainbow table attacks.