View Single Post
Old 03-18-2008, 03:21 PM   #26 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,239
Thanks: 3
Salathe is on a distinguished road
Default

To print a literal percent symbol, use two together
printf('%d%% sale, today only!', 50); // 50% sale, today only!
__________________
salathe@php.net
Salathe is offline  
Reply With Quote
The Following 2 Users Say Thank You to Salathe For This Useful Post:
maZtah (03-19-2008), Orc (03-18-2008)