[mapserver-users] php code for %

Daniel Morissette morissette at dmsolutions.ca
Thu Apr 18 16:35:48 EDT 2002


Guillaume SUEUR wrote:
> 
> I'm using Rosa applet like in Gmap demo, using an external file which prints into a main one. When writing the rosa parameters i'm using printf. But how can I printf a "%" as it is immediatly interpretated ? I've tried using chr(37), but the result is the same, php answers too few parameter.
> 

You can use '%%' in a printf format string to output a '%' char, 
e.g.
printf("Apache runs on more than 50%% of the servers on the Internet");

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.



More information about the mapserver-users mailing list