Restoring the pH of the scalp may help prevent hair loss from dandruff, bacteria or fungus. Every liquid substance on Earth has a pH, or an acid-base, measurement. Very few substances are neutral; most are either acidic, such as vinegar, or basic, such as bleach.