Phenolphtalein has a pKa of 9.7, therefore in principle you will titrate all acids which form a (sodium) salt below this pH.
If you add NaOH 0.1 M to a 0.01 M aqueous solution of citric acid (pKA's 3.13, 4.76 and 6.40), the acid will be completely titrated (trisodium citrate) at pH 9.1. The next drop of base will make the pH rise above the pKa of the indicator, and you will see the endpoint.
The mmoles of citric acid can be then calculated by dividing by 3 the mmoles of NaOH used.
VNaOH (mL) * 0.1 mmol/mL = mmoles NaOH
mmoles citric acid = mmoles NaOH / 3
m citric acid (mg) = mmoles citric acid * 192.124 mg/mmol
------------------------------------------------------------------------------------
m citric acid in your sample (mg) = VNaOH (mL) * 0.1 * 192.124 / 3
Unfortunately, a lot of other acids commonly found in beverages (carbonic, phosphoric, malic, ascorbic, tartaric...) have pKa's low enough to be titrated (partially or totally) together with citric acid.
So I think you'd better know the qualitative composition of the sample if you want your measure to be meaningful.
Hope it helps.