Are there any best practices for combining md5 and sha1 hashing functions in PHP for increased security?

Combining md5 and sha1 hashing functions in PHP can increase security by adding an extra layer of protection against potential attacks. One common approach is to concatenate the md5 and sha1 hashes of a given input string before storing or transmitting sensitive data.

$input = "secret_password";

$md5_hash = md5($input);
$sha1_hash = sha1($input);

$combined_hash = $md5_hash . $sha1_hash;

echo $combined_hash;