PHP sprintf escaping % October 11, 2022 by Tarik Escape it with another %: $stringWithVariables="About to deduct 50%% of %s %s from your Top-Up account.";