PHP sprintf escaping %

Escape it with another %:

$stringWithVariables="About to deduct 50%% of %s %s from your Top-Up account.";

Leave a Comment