Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php printf percent sign

Escape it with another %:
$stringWithVariables = 'About to deduct 50%% of %s %s from your Top-Up account.';

see --> 50%%
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #printf #percent #sign
ADD COMMENT
Topic
Name
5+8 =